From 5dffb5112f5b93e85091774ebb9666512b713fcf Mon Sep 17 00:00:00 2001 From: Davide Bizzi Date: Thu, 25 Jan 2024 15:58:59 +0100 Subject: [PATCH] fix: Do not redirect on public user --- src/features/NotLoggedOnly.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/NotLoggedOnly.tsx b/src/features/NotLoggedOnly.tsx index 8bcdd340b..2a9744dda 100644 --- a/src/features/NotLoggedOnly.tsx +++ b/src/features/NotLoggedOnly.tsx @@ -31,7 +31,7 @@ const NotLoggedOnly = ({ if (isLoading) { return ; } - if (user && redirect) { + if (user && redirect && !isPublicUser) { Sentry.setUser({ id: user?.id ?? 0, email: user?.email ?? "unknown",