diff options
author | Eric Bailey <git@esb.lol> | 2023-11-29 21:28:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 19:28:18 -0800 |
commit | 3e1b2346ee05ccec878933dda68d7e6bc09d9381 (patch) | |
tree | b7fa85b5b9a3ba7f51e068db378d451d57da08e7 /src/lib/hooks/useAccountSwitcher.ts | |
parent | b83fa957934dbbdafa5d0af267ddc064540e3261 (diff) | |
download | voidsky-3e1b2346ee05ccec878933dda68d7e6bc09d9381.tar.zst |
Close modals if switching to unauthed account (#2039)
Diffstat (limited to 'src/lib/hooks/useAccountSwitcher.ts')
-rw-r--r-- | src/lib/hooks/useAccountSwitcher.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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}`, |