completionId: cgen-c4f91b123ed145d8bd120602ae8059c3
cgen-c4f91b123ed145d8bd120602ae8059c3
This commit is contained in:
parent
c5f6952b19
commit
b3bf21e0cf
1 changed files with 4 additions and 2 deletions
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue