completionId: cgen-c4f91b123ed145d8bd120602ae8059c3

cgen-c4f91b123ed145d8bd120602ae8059c3
This commit is contained in:
Builder.io 2025-11-13 03:56:04 +00:00
parent c5f6952b19
commit b3bf21e0cf

View file

@ -319,11 +319,13 @@ export default function Dashboard() {
loadDashboardData(); loadDashboardData();
} else if (user && !profile) { } else if (user && !profile) {
console.log( console.log(
"User exists but no profile, showing message (not redirecting)", "User exists but no profile, redirecting to onboarding",
); );
// Auto-redirect to onboarding instead of showing a message
navigate("/onboarding", { replace: true });
setIsLoading(false); setIsLoading(false);
} }
}, [user, profile, authLoading]); }, [user, profile, authLoading, navigate]);
// Sync local settings form with profile // Sync local settings form with profile
useEffect(() => { useEffect(() => {