From 0abc51d75adee59fd181736705d77053d9866213 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 13 Nov 2024 00:31:43 -0300 Subject: [PATCH] fix: AccountMenu component to conditionally render logout button based on autoLogin status (#4535) Refactor AccountMenu component to conditionally render logout button based on autoLogin status --- .../appHeaderComponent/components/AccountMenu/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/appHeaderComponent/components/AccountMenu/index.tsx b/src/frontend/src/components/appHeaderComponent/components/AccountMenu/index.tsx index 118714220ca..4892ae49691 100644 --- a/src/frontend/src/components/appHeaderComponent/components/AccountMenu/index.tsx +++ b/src/frontend/src/components/appHeaderComponent/components/AccountMenu/index.tsx @@ -126,9 +126,11 @@ export const AccountMenu = () => { Logout ) : ( - - Logout - + !autoLogin && ( + + Logout + + ) )}