Skip to content

Commit

Permalink
chore: 주석 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
Low-ProFiles committed Aug 23, 2024
1 parent 0fa50e0 commit b71cc1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/team/useEmptyTeamIdRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useEmptyTeamIdRedirect = (redirectPath: string = '/login') => {

useEffect(() => {
if (!teamId || !teamCode) {
// navigate(redirectPath);
navigate(redirectPath);
}
}, [teamId, teamCode, navigate, redirectPath]);

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useRequireAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const RequireAuth = ({ children }) => {
useEffect(() => {
const accessToken = localStorage.getItem('accessToken');
if (!accessToken && location.pathname !== '/login') {
// navigate('/login');
navigate('/login');
}
}, [children]);

Expand Down

0 comments on commit b71cc1d

Please sign in to comment.