From 77e1026d4d9f17162f064cde0474f2962bcd01e8 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 20 Sep 2024 10:00:48 -0700 Subject: [PATCH] Remove callout flash --- web/components/twomba/toggle-verify-callout.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/components/twomba/toggle-verify-callout.tsx b/web/components/twomba/toggle-verify-callout.tsx index 9b7ba8c192..51c281a365 100644 --- a/web/components/twomba/toggle-verify-callout.tsx +++ b/web/components/twomba/toggle-verify-callout.tsx @@ -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 (