Skip to content

Commit

Permalink
bug: ruta login-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
imdaviddev committed Sep 10, 2024
1 parent 6698d1e commit 2b7c817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/components/ProtectedRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { Navigate, Outlet } from 'react-router-dom';

export const ProtectedRoute = () => {
const { isAuthenticated } = useAuthContext();
return isAuthenticated ? <Outlet /> : <Navigate to='/admin'/>;
return isAuthenticated ? <Outlet /> : <Navigate to='/login'/>;
}

0 comments on commit 2b7c817

Please sign in to comment.