diff --git a/components/with.auth.tsx b/components/with.auth.tsx index f77b5d8..a32e397 100644 --- a/components/with.auth.tsx +++ b/components/with.auth.tsx @@ -47,6 +47,7 @@ export const withAuth = (Component, roles: string[] = []): React.FC => { setAccess(true) return } + setAccess(false) if (!error) { return }