Skip to content

Commit

Permalink
chore(react): use toLocaleUpperCase()
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Oct 25, 2023
1 parent fd22052 commit a253ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Header: FC<HeaderProps> & WithWrapperProps = (props: HeaderProps): ReactEl
endIcon: <ChevronDownIcon />,
startIcon: (
<Avatar className="image" alt="User Image" src={user?.image}>
{user?.name?.split('')[0].toUpperCase()}
{user?.name?.split('')[0].toLocaleUpperCase()}
</Avatar>
),
...userDropdownMenuProps.triggerOptions,
Expand Down

0 comments on commit a253ada

Please sign in to comment.