Skip to content

Commit

Permalink
fix: Missed has change
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Anton committed May 24, 2024
1 parent 41c733f commit 0b5f73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/shared-web/src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function useAuth() {
const location = useLocation();
const [token, setToken] = useState<string | null>(getTokenFromStorage());

const inPublicRoute = PUBLIC_ROUTES.includes(location.pathname as any);
const inPublicRoute = PUBLIC_ROUTES.has(location.pathname as any);
const inPrivateRoute = !inPublicRoute;

const login = useCallback((newToken: string) => {
Expand Down

0 comments on commit 0b5f73c

Please sign in to comment.