We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0f4c5 commit 0bf3aacCopy full SHA for 0bf3aac
src/misc/DefaultAvatar/DefaultAvatar.js
@@ -31,7 +31,7 @@ const useStyles = makeStyles((theme) => ({
31
32
export const DefaultAvatar = ({ userName, size, variant }) => {
33
const avatarBackgroundColor = stringToColor(userName);
34
- const letter = userName.charAt(0).toUpperCase();
+ const letter = String.fromCodePoint(userName.codePointAt(0)).toUpperCase();
35
36
const classes = useStyles({ avatarBackgroundColor, size });
37
0 commit comments