mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
fix flash of unauthenticated code
This commit is contained in:
parent
c3fbaf3367
commit
3341b585c5
@ -47,6 +47,7 @@ export const withAuth = (Component, roles: string[] = []): React.FC => {
|
||||
setAccess(true)
|
||||
return
|
||||
}
|
||||
setAccess(false)
|
||||
if (!error) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user