From 47249243fb4e73f0d3c0e18c0353c72693f9ccff Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Wed, 12 May 2021 16:44:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20sidebar=20not=20rendering?= =?UTF-8?q?=20when=20logged=20out?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/frontend/src/components/interactive/Sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } {