From e8be631182d18087ef696f2b36ee559988607721 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 7 Apr 2024 03:07:22 -0400 Subject: [PATCH] Fixes for Login Bug --- frontend-next/src/app/chat/page.js | 2 -- frontend-next/src/app/user/page.js | 3 --- 2 files changed, 5 deletions(-) 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"; } }); }, []);