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 (langflow-ai#4535)

Refactor AccountMenu component to conditionally render logout button based on autoLogin status
  • Loading branch information
anovazzi1 authored and diogocabral committed Nov 26, 2024
1 parent e226f8a commit 4166217
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 4166217

Please sign in to comment.