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