From 3341b585c511bed048711270b402e312ac974e79 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Tue, 2 Jun 2020 09:58:10 +0200 Subject: [PATCH] fix flash of unauthenticated code --- components/with.auth.tsx | 1 + 1 file changed, 1 insertion(+) 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 }