Close modals if switching to unauthed account (#2039)
This commit is contained in:
@@ -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}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user