Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pmh-only committed Sep 13, 2023
1 parent 89067b8 commit cd2c440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Routers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Routers: FC = () => {
.catch(() => ({ status: 400 }))

if (res.status !== 200) {
if (location.pathname !== '/login' || location.pathname.startsWith('/invites'))
if (location.pathname !== '/login' && !location.pathname.startsWith('/invites'))
navigate('/login')

return
Expand Down

0 comments on commit cd2c440

Please sign in to comment.