diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 2bc8b0d7..3184577d 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -132,19 +132,24 @@ export default function Dashboard() { } }; - // Return early if auth is still loading - if (authLoading) { + // Don't show loading screen if no user - just redirect + if (!user) { + return null; + } + + // Show loading only if we have a user but are still loading data + if (authLoading || isLoading) { return ( ); } - // If auth is complete but no user, the useEffect will handle redirect - if (!user || !profile) { + // Don't render if no profile + if (!profile) { return null; }