Skip to content

Commit

Permalink
fix: update the hoppscotch-sh-admin magic link route to match hoppsco…
Browse files Browse the repository at this point in the history
…tch-app (hoppscotch#3029)
  • Loading branch information
amk-dev authored and AndrewBastin committed May 11, 2023
1 parent caedfe5 commit 6581eb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hoppscotch-sh-admin/src/modules/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const isAdmin = () => {
return user ? user.isAdmin : false;
};

const GUEST_ROUTES = ['index', 'magic-link'];
const GUEST_ROUTES = ['index', 'enter'];

const isGuestRoute = (to: unknown) => GUEST_ROUTES.includes(to as string);

Expand Down

0 comments on commit 6581eb4

Please sign in to comment.