Close modals if switching to unauthed account (#2039)

zio/stable
Eric Bailey 2023-11-29 21:28:18 -06:00 committed by GitHub
parent b83fa95793
commit 3e1b2346ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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}`,