diff --git a/frontend/src/components/Matchmaking.tsx b/frontend/src/components/Matchmaking.tsx index aa7f4b5..c642157 100644 --- a/frontend/src/components/Matchmaking.tsx +++ b/frontend/src/components/Matchmaking.tsx @@ -40,14 +40,14 @@ const Matchmaking: React.FC = () => { } if (!user) { - navigate('/login'); + navigate('/auth'); return; } // Get token from localStorage const token = localStorage.getItem('token'); if (!token) { - navigate('/login'); + navigate('/auth'); return; } diff --git a/frontend/src/context/authContext.tsx b/frontend/src/context/authContext.tsx index 13793a8..877dae7 100644 --- a/frontend/src/context/authContext.tsx +++ b/frontend/src/context/authContext.tsx @@ -67,7 +67,7 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => { localStorage.removeItem('token'); setToken(null); setUser(null); - navigate('/login'); + navigate('/auth'); return; } setToken(storedToken);