diff --git a/app/(main)/(home)/page.tsx b/app/(main)/(home)/page.tsx
index f923763..05f2297 100644
--- a/app/(main)/(home)/page.tsx
+++ b/app/(main)/(home)/page.tsx
@@ -55,10 +55,10 @@ const Home: React.FC = () => {
};
React.useEffect(() => {
- if (user && !user.hasTeam) {
+ if (!isLoading && user && !user.hasTeam) {
router.push('/onboarding');
}
- }, [user, router]);
+ }, [isLoading, user, router]);
if (isLoading) return ;
if (error) return ;