Skip to content

Commit 297ff28

Browse files
MelvinBotmkhutornyi
andcommitted
Prevent deeplink navigation before authentication
Add isAuthenticated guard to the hasCompletedGuidedSetupFlowSelector check to prevent handleDeeplinkNavigation from being called before login completes. The selector returns true for empty onboarding objects, which caused premature navigation during the sign-in flow. Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
1 parent 196ec16 commit 297ff28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/actions/Link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function openReportFromDeepLink(
364364
}
365365
};
366366

367-
if (hasCompletedGuidedSetupFlowSelector(val) || isAnonymousUser()) {
367+
if ((isAuthenticated && hasCompletedGuidedSetupFlowSelector(val)) || isAnonymousUser()) {
368368
handleDeeplinkNavigation();
369369
}
370370
});

0 commit comments

Comments
 (0)