fix flash of unauthenticated code

This commit is contained in:
Michael Schramm 2020-06-02 09:58:10 +02:00
parent c3fbaf3367
commit 3341b585c5

View File

@ -47,6 +47,7 @@ export const withAuth = (Component, roles: string[] = []): React.FC => {
setAccess(true)
return
}
setAccess(false)
if (!error) {
return
}