completionId: cgen-5802fba3175c469394af3c1863ead0d3
cgen-5802fba3175c469394af3c1863ead0d3
This commit is contained in:
parent
b3bf21e0cf
commit
3d75207389
1 changed files with 4 additions and 5 deletions
|
|
@ -319,13 +319,12 @@ export default function Dashboard() {
|
|||
loadDashboardData();
|
||||
} else if (user && !profile) {
|
||||
console.log(
|
||||
"User exists but no profile, redirecting to onboarding",
|
||||
"User exists but no profile, keeping loading screen visible",
|
||||
);
|
||||
// Auto-redirect to onboarding instead of showing a message
|
||||
navigate("/onboarding", { replace: true });
|
||||
setIsLoading(false);
|
||||
// Keep loading visible while waiting for profile, then onboarding will take over
|
||||
// Don't set isLoading to false yet
|
||||
}
|
||||
}, [user, profile, authLoading, navigate]);
|
||||
}, [user, profile, authLoading]);
|
||||
|
||||
// Sync local settings form with profile
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue