about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/hooks/useAccountSwitcher.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/hooks/useAccountSwitcher.ts b/src/lib/hooks/useAccountSwitcher.ts
index 8a1dea5fe..f67a586ef 100644
--- a/src/lib/hooks/useAccountSwitcher.ts
+++ b/src/lib/hooks/useAccountSwitcher.ts
@@ -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)