diff --git a/code/frontend/src/components/interactive/Sidebar.js b/code/frontend/src/components/interactive/Sidebar.js index ac327f1..ac3fffe 100644 --- a/code/frontend/src/components/interactive/Sidebar.js +++ b/code/frontend/src/components/interactive/Sidebar.js @@ -44,11 +44,11 @@ export default function Sidebar({ className, ...props }) { } { - user.isAdmin ? + user && user.isAdmin ? <> Utenti - : + : null } {