group posts
This commit is contained in:
@@ -6,8 +6,6 @@ export default function ProtectedRoute() {
|
||||
const isAuthenticated = useAppSelector((state) => !!state.auth.jwt);
|
||||
const location = useLocation();
|
||||
|
||||
console.log('location', location);
|
||||
|
||||
if (!isAuthenticated) {
|
||||
return <Navigate to="/home/login" replace state={{ from: location }} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user