From 50bfee33284e716a888298078a03ca3f656c2bbd Mon Sep 17 00:00:00 2001 From: Syed Abdullah <2syedabdullah@gmail.com> Date: Fri, 28 Nov 2025 06:30:22 +0000 Subject: [PATCH] Moved the redirect to else statement --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 06998956..22f6bc84 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,9 +10,9 @@ export default function RootPage() { if (lastTeam) { redirect(`/teams/${lastTeam}/websites`); + } else { + redirect(`/websites`); } - - redirect(`/websites`); }, []); return null;