diff --git a/client/pages/GetStarted.tsx b/client/pages/GetStarted.tsx index 3b9f580d..567e0de3 100644 --- a/client/pages/GetStarted.tsx +++ b/client/pages/GetStarted.tsx @@ -83,13 +83,13 @@ export default function GetStarted() { ]; const navigate = useNavigate(); - const { user, profileComplete, loading } = useAuth(); + const { user, profile, loading } = useAuth(); useEffect(() => { if (loading) return; - if (user && profileComplete) navigate("/dashboard", { replace: true }); - if (user && !profileComplete) navigate("/onboarding", { replace: true }); - }, [user, profileComplete, loading, navigate]); + if (user && profile) navigate("/dashboard", { replace: true }); + if (user && !profile) navigate("/onboarding", { replace: true }); + }, [user, profile, loading, navigate]); return (