From 13e070f208f82711851ba36e00448540042d159e Mon Sep 17 00:00:00 2001 From: Tsaqif Date: Wed, 11 Sep 2024 06:46:13 +0700 Subject: [PATCH] move the shouldSkipDeepLinkNavigation if check Signed-off-by: Tsaqif --- src/libs/actions/Report.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 147b07f650b2..2298c78f4ffc 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -2684,10 +2684,6 @@ function openReportFromDeepLink(url: string) { return; } - if (shouldSkipDeepLinkNavigation(route)) { - return; - } - const state = navigationRef.getRootState(); const currentFocusedRoute = findFocusedRoute(state); const hasCompletedGuidedSetupFlow = hasCompletedGuidedSetupFlowSelector(onboarding); @@ -2705,6 +2701,10 @@ function openReportFromDeepLink(url: string) { return; } + if (shouldSkipDeepLinkNavigation(route)) { + return; + } + if (isAuthenticated) { return; }