completionId: cgen-17a053e57a754471a0d06f1e89833463

cgen-17a053e57a754471a0d06f1e89833463
This commit is contained in:
Builder.io 2025-11-16 08:41:42 +00:00
parent 772f229677
commit 098fe02aa5

View file

@ -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 (
<Layout>