fix: update the hoppscotch-sh-admin magic link route to match hoppscotch-app (#3029)

This commit is contained in:
Akash K
2023-05-03 23:12:50 +05:30
committed by GitHub
parent d129676cd6
commit fb08147c66
2 changed files with 1 additions and 1 deletions

View File

@@ -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);