diff --git a/apps/web/components/ensure-workspace.tsx b/apps/web/components/ensure-workspace.tsx index 62da5295..688e61a9 100644 --- a/apps/web/components/ensure-workspace.tsx +++ b/apps/web/components/ensure-workspace.tsx @@ -29,8 +29,7 @@ export function EnsureWorkspace({ children }: { children: React.ReactNode }) { // While the session is still pending we can't tell guest from logged-in, so // rendering the public page optimistically here causes a logged-in user to // see public content → loading shell → authenticated content (a double flash). - const isGuestPublicAppPage = - isPublicAppPage && !session && !isSessionPending + const isGuestPublicAppPage = isPublicAppPage && !session && !isSessionPending const isOnboarding = pathname.startsWith("/onboarding") useEffect(() => {