From da41c762df457e061f90c33c2badddb1f2e9aa9f Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 31 Jan 2024 12:25:23 +0800 Subject: [PATCH] don't go to sign in modal if the route is empty --- src/libs/actions/Report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 1f6905cfb8e0..b9eb1aecb412 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -1984,7 +1984,7 @@ function openReportFromDeepLink(url: string, isAuthenticated: boolean) { navigateToConciergeChat(true); return; } - if (Session.isAnonymousUser() && !Session.canAccessRouteByAnonymousUser(route)) { + if (route && Session.isAnonymousUser() && !Session.canAccessRouteByAnonymousUser(route)) { Session.signOutAndRedirectToSignIn(true); return; }