Improve account switching on mobile (#2135)
* Improve account switching on mobile * Clarify comment
This commit is contained in:
parent
174a1622c9
commit
b7a5294123
1 changed files with 9 additions and 1 deletions
|
@ -23,8 +23,16 @@ export function useAccountSwitcher() {
|
|||
try {
|
||||
if (account.accessJwt) {
|
||||
closeAllActiveElements()
|
||||
navigation.navigate(isWeb ? 'Home' : 'HomeTab')
|
||||
await selectAccount(account)
|
||||
|
||||
/*
|
||||
* Mobile resets to Home on its own, so no need to handle mobile
|
||||
* specifically.
|
||||
*/
|
||||
if (isWeb) {
|
||||
navigation.navigate('Home')
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
Toast.show(`Signed in as @${account.handle}`)
|
||||
}, 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue