Skip to content

Commit

Permalink
fix: route protect cannot register
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeGoood committed Aug 2, 2024
1 parent 41c0ade commit df74644
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/context/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ const AuthProvider: React.FC<{ children: ReactNode }> = ({
if (!isStaffPage) {
return router.push(homePage);
}

if (
(isRpkm && !path.includes('rpkm')) ||
(!isRpkm && !path.includes('firstdate'))
) {
return router.push(homePage);
}
} else {
// user route protection
if (path == '/') {
Expand Down

0 comments on commit df74644

Please sign in to comment.