Skip to content

Commit

Permalink
Merge pull request #1241 from CruGlobal/fix-dom-nesting-error
Browse files Browse the repository at this point in the history
[no-Jira] Fix validateDOMNesting error
  • Loading branch information
canac authored Dec 19, 2024
2 parents 32743d7 + 75421c8 commit 70ada23
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,18 @@ const ProfileName = ({
{!impersonating && (
<IconButton onClick={onProfileMenuOpen} data-testid="profileMenuButton">
<Box display="flex" alignItems="center" m={-1}>
<IconButton>
{loading || !avatar ? (
<StyledAccountIcon data-testid="AccountIconInTopBar" />
) : (
<Avatar
data-testid="AvatarInTopBar"
src={avatar}
sx={{
width: 30,
height: 30,
}}
/>
)}
</IconButton>
{loading || !avatar ? (
<StyledAccountIcon data-testid="AccountIconInTopBar" />
) : (
<Avatar
data-testid="AvatarInTopBar"
src={avatar}
sx={{
width: 30,
height: 30,
}}
/>
)}
{children}
</Box>
</IconButton>
Expand Down

0 comments on commit 70ada23

Please sign in to comment.