Skip to content

Commit d82b078

Browse files
authored
Merge pull request #35850 from aswin-s/fix/issue-35782
fix: sign-in here navigating to abracadabra page
2 parents 413f739 + 94800c6 commit d82b078

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/ValidateLoginPage/index.website.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ function ValidateLoginPage({
2727
useEffect(() => {
2828
if (!login && isSignedIn && (autoAuthState === CONST.AUTO_AUTH_STATE.SIGNING_IN || autoAuthState === CONST.AUTO_AUTH_STATE.JUST_SIGNED_IN)) {
2929
// The user clicked the option to sign in the current tab
30-
Navigation.navigate();
30+
Navigation.isNavigationReady().then(() => {
31+
Navigation.goBack();
32+
});
3133
return;
3234
}
3335
Session.initAutoAuthState(autoAuthState);
@@ -47,7 +49,9 @@ function ValidateLoginPage({
4749
}
4850

4951
// The user clicked the option to sign in the current tab
50-
Navigation.navigate();
52+
Navigation.isNavigationReady().then(() => {
53+
Navigation.goBack();
54+
});
5155
}, [login, cachedAccountID, is2FARequired]);
5256

5357
return (

0 commit comments

Comments
 (0)