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
+1
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}`,