Don't clear toasts when changing users (#3843)
* Move ThemeProvider to the top * Move RootSiblingParent above the remounted part * Move ToastContainer outside the remounted part * Remove setTimeout around toasts * Consistently handle dropped session
This commit is contained in:
parent
aeed4786db
commit
85b34418ef
4 changed files with 64 additions and 62 deletions
|
@ -52,9 +52,7 @@ export const ChooseAccountForm = ({
|
|||
withPassword: false,
|
||||
})
|
||||
track('Sign In', {resumedSession: true})
|
||||
setTimeout(() => {
|
||||
Toast.show(_(msg`Signed in as @${account.handle}`))
|
||||
}, 100)
|
||||
Toast.show(_(msg`Signed in as @${account.handle}`))
|
||||
} catch (e: any) {
|
||||
logger.error('choose account: initSession failed', {
|
||||
message: e.message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue