diff --git a/frontend-next/src/app/chat/page.js b/frontend-next/src/app/chat/page.js index c9c13f4..9421a3c 100644 --- a/frontend-next/src/app/chat/page.js +++ b/frontend-next/src/app/chat/page.js @@ -47,8 +47,6 @@ function Chat() { window.location.href = "/onboarding"; } }); - } else { - window.location.href = "/login" } }, [authUser]) diff --git a/frontend-next/src/app/user/page.js b/frontend-next/src/app/user/page.js index 7db4219..f56df4f 100644 --- a/frontend-next/src/app/user/page.js +++ b/frontend-next/src/app/user/page.js @@ -56,9 +56,6 @@ function UserProfile() { window.location.href = "/onboarding"; } }); - } else { - setIsAuthenticated(false); - window.location.href = "/login"; } }); }, []);