From 3e1b2346ee05ccec878933dda68d7e6bc09d9381 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 29 Nov 2023 21:28:18 -0600 Subject: Close modals if switching to unauthed account (#2039) --- src/lib/hooks/useAccountSwitcher.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/hooks/useAccountSwitcher.ts') diff --git a/src/lib/hooks/useAccountSwitcher.ts b/src/lib/hooks/useAccountSwitcher.ts index 3851fe601..8a1dea5fe 100644 --- a/src/lib/hooks/useAccountSwitcher.ts +++ b/src/lib/hooks/useAccountSwitcher.ts @@ -29,6 +29,7 @@ export function useAccountSwitcher() { Toast.show(`Signed in as @${account.handle}`) }, 100) } else { + closeAllActiveElements() setShowLoggedOut(true) Toast.show( `Please sign in as @${account.handle}`, -- cgit 1.4.1