From eb98f0a45cbcb4c098371c2df3a23bb6be70043d Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Tue, 25 Mar 2025 10:24:32 +0700 Subject: [PATCH] App crash during signin --- src/libs/Navigation/NavigationRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Navigation/NavigationRoot.tsx b/src/libs/Navigation/NavigationRoot.tsx index 14e59452aab0..6b7a9cbd13b9 100644 --- a/src/libs/Navigation/NavigationRoot.tsx +++ b/src/libs/Navigation/NavigationRoot.tsx @@ -174,7 +174,7 @@ function NavigationRoot({authenticated, lastVisitedPath, initialUrl, onReady}: N // Since the NAVIGATORS.REPORTS_SPLIT_NAVIGATOR url is "/" and it has to be used as an URL for SignInPage, // this navigator should be the only one in the navigation state after logout. const hasUserLoggedOut = !authenticated && !!previousAuthenticated; - if (!hasUserLoggedOut) { + if (!hasUserLoggedOut || !navigationRef.isReady()) { return; }