Skip to content

Commit

Permalink
Merge pull request #288 from AppQuality/develop
Browse files Browse the repository at this point in the history
fix: Do not redirect on public user
  • Loading branch information
sinatragianpaolo authored Jan 25, 2024
2 parents f41433f + 5dffb51 commit fdb1e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/NotLoggedOnly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const NotLoggedOnly = ({
if (isLoading) {
return <Loading />;
}
if (user && redirect) {
if (user && redirect && !isPublicUser) {
Sentry.setUser({
id: user?.id ?? 0,
email: user?.email ?? "unknown",
Expand Down

0 comments on commit fdb1e88

Please sign in to comment.