diff --git a/src/routes/components/PrivateRoute.tsx b/src/routes/components/PrivateRoute.tsx index b62aa8f..90dc952 100644 --- a/src/routes/components/PrivateRoute.tsx +++ b/src/routes/components/PrivateRoute.tsx @@ -5,7 +5,7 @@ import { Navigate, Outlet } from 'react-router-dom'; export const PrivateRoute = () => { const { authInfo } = useAuth(); - if (authInfo) { + if (!authInfo) { return ; }