Skip to content

Commit

Permalink
Merge pull request #19692 from qmonmert/fix/19634
Browse files Browse the repository at this point in the history
[React] Profile menus labels are not updated after login using react
  • Loading branch information
Tcharl committed Sep 11, 2022
2 parents 8da663a + 4fe7cbc commit b741f65
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const accountMenuItems = () => (

export const AccountMenu = ({ isAuthenticated = false }) => (
<NavDropdown icon="user" name={translate('global.menu.account.main')} id="account-menu" data-cy="accountMenu">
{isAuthenticated ? accountMenuItemsAuthenticated() : accountMenuItems()}
{isAuthenticated && accountMenuItemsAuthenticated()}
{!isAuthenticated && accountMenuItems()}
</NavDropdown>
);

Expand Down

0 comments on commit b741f65

Please sign in to comment.