Skip to content

Commit 264d249

Browse files
authored
Merge pull request #23944 from tienifr/fix/22736
fix: 22736 sign in here redirected to lhn after login successfully
2 parents c9df4db + 14c1f5f commit 264d249

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pages/ValidateLoginPage/index.website.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as Session from '../../libs/actions/Session';
1010
import useLocalize from '../../hooks/useLocalize';
1111
import ExpiredValidateCodeModal from '../../components/ValidateCode/ExpiredValidateCodeModal';
1212
import Navigation from '../../libs/Navigation/Navigation';
13-
import ROUTES from '../../ROUTES';
1413
import CONST from '../../CONST';
1514
import JustSignedInModal from '../../components/ValidateCode/JustSignedInModal';
1615

@@ -62,7 +61,7 @@ function ValidateLoginPage(props) {
6261
useEffect(() => {
6362
if (!login && isSignedIn && (autoAuthState === CONST.AUTO_AUTH_STATE.SIGNING_IN || autoAuthState === CONST.AUTO_AUTH_STATE.JUST_SIGNED_IN)) {
6463
// The user clicked the option to sign in the current tab
65-
Navigation.navigate(ROUTES.REPORT);
64+
Navigation.navigate();
6665
return;
6766
}
6867
Session.initAutoAuthState(autoAuthState);
@@ -82,7 +81,7 @@ function ValidateLoginPage(props) {
8281
}
8382

8483
// The user clicked the option to sign in the current tab
85-
Navigation.navigate(ROUTES.REPORT);
84+
Navigation.navigate();
8685
}, [login, cachedAccountID, is2FARequired]);
8786

8887
return (

0 commit comments

Comments
 (0)