Skip to content

Commit

Permalink
fix: AccountMenu component to conditionally render logout button base…
Browse files Browse the repository at this point in the history
…d on autoLogin status (#4535)

Refactor AccountMenu component to conditionally render logout button based on autoLogin status
  • Loading branch information
anovazzi1 authored Nov 13, 2024
1 parent f1fd5be commit 0abc51d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ export const AccountMenu = () => {
Logout
</HeaderMenuItemLink>
) : (
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
Logout
</HeaderMenuItemButton>
!autoLogin && (
<HeaderMenuItemButton onClick={handleLogout} icon="log-out">
Logout
</HeaderMenuItemButton>
)
)}
</HeaderMenuItemsSection>
</HeaderMenuItems>
Expand Down

0 comments on commit 0abc51d

Please sign in to comment.