From 79adf3d3f5af84743a1832c66a1811464c6b7f4e Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Fri, 1 Aug 2025 18:32:48 +0200 Subject: [PATCH] remove auth status if not logged in --- frontend/src/components/AuthStatus.tsx | 49 ++++++++++---------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/frontend/src/components/AuthStatus.tsx b/frontend/src/components/AuthStatus.tsx index 6335712..bdf6527 100644 --- a/frontend/src/components/AuthStatus.tsx +++ b/frontend/src/components/AuthStatus.tsx @@ -48,35 +48,24 @@ export default function AuthStatus() { : { isAuthenticated: auth.isAuthenticated, user: auth.user }; return ( -
- {displayState.isAuthenticated ? ( - <> -
- - {displayState.user?.profile.name || "Authenticated"} - - - - ) : ( - <> - - - )} -
+ displayState.isAuthenticated && ( +
+
+ + {displayState.user?.profile.name || "Authenticated"} + + +
+ ) ); }