From b4a3e7ab69057d10fdcb3e4cb5e64b59810ec410 Mon Sep 17 00:00:00 2001 From: saintnoodle <14948290+saintnoodle@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:32:00 +0000 Subject: [PATCH] fix: logout button appears when logged out (#995) --- client/src/components/layout/header/Header.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/layout/header/Header.tsx b/client/src/components/layout/header/Header.tsx index 3e276f630..972659802 100644 --- a/client/src/components/layout/header/Header.tsx +++ b/client/src/components/layout/header/Header.tsx @@ -60,9 +60,11 @@ export default function Header({ styles }: { styles: LayoutStyles }) { setState={setState} /> -
- -
+ {user && ( +
+ +
+ )}