This commit is contained in:
estifanos
2026-08-17 07:13:34 +00:00
parent 2341f90107
commit 28ae9f393d
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ interface ProtectedRouteProps {
loginPath?: string;
}
export function ProtectedRoute({ children, loginPath = '/login' }: ProtectedRouteProps) {
export function ProtectedRoute({ children, loginPath = '/' }: ProtectedRouteProps) {
const location = useLocation();
const token = useAuthToken();