1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

🐛 Fix sidebar not rendering when logged out

This commit is contained in:
Stefano Pigozzi 2021-05-12 16:44:39 +02:00
parent e0a18bde3a
commit 47249243fb
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01

View file

@ -44,7 +44,7 @@ export default function Sidebar({ className, ...props }) {
</> </>
} }
{ {
user.isAdmin ? user && user.isAdmin ?
<> <>
<ButtonSidebar to={"/users"} icon={faUserCog}>Utenti</ButtonSidebar> <ButtonSidebar to={"/users"} icon={faUserCog}>Utenti</ButtonSidebar>
</> </>