Close modals if switching to unauthed account (#2039)

This commit is contained in:
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

View file

@ -29,6 +29,7 @@ export function useAccountSwitcher() {
Toast.show(`Signed in as @${account.handle}`) Toast.show(`Signed in as @${account.handle}`)
}, 100) }, 100)
} else { } else {
closeAllActiveElements()
setShowLoggedOut(true) setShowLoggedOut(true)
Toast.show( Toast.show(
`Please sign in as @${account.handle}`, `Please sign in as @${account.handle}`,