Skip to content

Commit

Permalink
Remove callout flash
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Sep 20, 2024
1 parent 0237001 commit 77e1026
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web/components/twomba/toggle-verify-callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export function ToggleVerifyCallout(props: {
const user = useUser()
const [dismissed, setDismissed] = usePersistentLocalState(
false,
`toggle-verify-callout-dismissed-${user?.id ?? 'logged-out'}`
`toggle-verify-callout-dismissed`
)

if (dismissed) return null
if (dismissed || user === undefined) return null

// TWODO: Add a link to about here
if (!user) {
if (user === null) {
return (
<CalloutFrame
className={className}
Expand All @@ -52,7 +52,6 @@ export function ToggleVerifyCallout(props: {
}

const { message } = getVerificationStatus(user)

if (!PROMPT_VERIFICATION_MESSAGES.includes(message)) return null

return (
Expand Down

0 comments on commit 77e1026

Please sign in to comment.