mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +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,7 +44,7 @@ export default function Sidebar({ className, ...props }) {
|
|||
</>
|
||||
}
|
||||
{
|
||||
user.isAdmin ?
|
||||
user && user.isAdmin ?
|
||||
<>
|
||||
<ButtonSidebar to={"/users"} icon={faUserCog}>Utenti</ButtonSidebar>
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue