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:
parent
e0a18bde3a
commit
47249243fb
1 changed files with 2 additions and 2 deletions
|
@ -44,11 +44,11 @@ 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>
|
||||||
</>
|
</>
|
||||||
:
|
:
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue