fix: User not being authenticated but on AuthenticatedRoute.tsx

This commit is contained in:
Myzel394 2023-02-12 17:19:53 +01:00
parent 652837838b
commit 880f30ef87

View File

@ -20,7 +20,7 @@ export default function AuthenticatedRoute(): ReactElement {
NavigationSection.Aliases,
NavigationSection.Reports,
NavigationSection.Settings,
user.isAdmin && NavigationSection.Admin,
user?.isAdmin && NavigationSection.Admin,
].filter(value => value !== false) as NavigationSection[]
return (