From 0561b5450385d9ba7143e10ca0d59d537f79d525 Mon Sep 17 00:00:00 2001 From: Malik Whitten <65188863+MalikWhitten67@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:37:36 -0500 Subject: [PATCH] Make sure to return user to home after logging in --- src/Utils/Hooks/useAuth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utils/Hooks/useAuth.ts b/src/Utils/Hooks/useAuth.ts index 82b85b46..eaa40c45 100644 --- a/src/Utils/Hooks/useAuth.ts +++ b/src/Utils/Hooks/useAuth.ts @@ -13,6 +13,7 @@ export default function useAuth() { await api.authStore.login(email, password); setIsAuthenticated(api.authStore.isValid()); setIsLoading(false); + navigate("/", null); } catch (error: any) { setIsLoading(false); setError(error.message);