mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
fix: User not being authenticated but on AuthenticatedRoute.tsx
This commit is contained in:
parent
652837838b
commit
880f30ef87
@ -20,7 +20,7 @@ export default function AuthenticatedRoute(): ReactElement {
|
|||||||
NavigationSection.Aliases,
|
NavigationSection.Aliases,
|
||||||
NavigationSection.Reports,
|
NavigationSection.Reports,
|
||||||
NavigationSection.Settings,
|
NavigationSection.Settings,
|
||||||
user.isAdmin && NavigationSection.Admin,
|
user?.isAdmin && NavigationSection.Admin,
|
||||||
].filter(value => value !== false) as NavigationSection[]
|
].filter(value => value !== false) as NavigationSection[]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user