Fixes for blank Shell

This commit is contained in:
zomars 2022-04-11 08:54:56 -07:00
parent 95af0fb631
commit a3e0d0aec9

View file

@ -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 (
<>