Skip to content

Commit

Permalink
Merge pull request #64 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
fix: route 수정
  • Loading branch information
seung365 authored Aug 7, 2024
2 parents d8119fe + af48c64 commit b678276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/components/PrivateRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Navigate, Outlet } from 'react-router-dom';
export const PrivateRoute = () => {
const { authInfo } = useAuth();

if (authInfo) {
if (!authInfo) {
return <Navigate to={RouterPath.login} />;
}

Expand Down

0 comments on commit b678276

Please sign in to comment.