Skip to content

Commit

Permalink
Merge pull request #84 from Teammanagers/main
Browse files Browse the repository at this point in the history
Merge pull request #83 from Teammanagers/develop
  • Loading branch information
Low-ProFiles authored Aug 23, 2024
2 parents 6cbd476 + b71cc1d commit d9b0900
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 d9b0900

Please sign in to comment.