Fixes for blank Shell
This commit is contained in:
1 parent
95af0fb631
commit
a3e0d0aec9
1 file changed
+2
-2
@@ -136,7 +136,7 @@ export default function Shell(props: {
|
||||
}) {
|
||||
const { t } = useLocale();
|
||||
const router = useRouter();
|
||||
const { loading, shouldDisplayUnauthed } = useRedirectToLoginIfUnauthenticated();
|
||||
const { loading, shouldDisplayUnauthed, session } = useRedirectToLoginIfUnauthenticated();
|
||||
const { isRedirectingToOnboarding } = useRedirectToOnboardingIfNeeded();
|
||||
|
||||
const telemetry = useTelemetry();
|
||||
@@ -209,7 +209,7 @@ export default function Shell(props: {
|
||||
);
|
||||
}
|
||||
|
||||
if (!shouldDisplayUnauthed) return null;
|
||||
if (!session && !shouldDisplayUnauthed) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user