Skip to content

Commit 58b8887

Browse files
authored
Merge pull request #59031 from nkdengineer/fix/58765
App crash during signin
2 parents c536c8f + eb98f0a commit 58b8887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/Navigation/NavigationRoot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function NavigationRoot({authenticated, lastVisitedPath, initialUrl, onReady}: N
174174
// Since the NAVIGATORS.REPORTS_SPLIT_NAVIGATOR url is "/" and it has to be used as an URL for SignInPage,
175175
// this navigator should be the only one in the navigation state after logout.
176176
const hasUserLoggedOut = !authenticated && !!previousAuthenticated;
177-
if (!hasUserLoggedOut) {
177+
if (!hasUserLoggedOut || !navigationRef.isReady()) {
178178
return;
179179
}
180180

0 commit comments

Comments
 (0)