fix(Avatar): Display special characters in avatar initials

This commit is contained in:
Vlad Piersec 2021-11-08 13:37:31 +02:00 committed by vp8x8
parent 08fb232627
commit 15b677aa2a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export function getInitials(s: ?string) {
let initials = '';
for (const w of words) {
(initials.length < 2) && (initials += w.substr(0, 1).toUpperCase());
(initials.length < 2) && (initials += String.fromCodePoint(w.codePointAt(0)).toUpperCase());
}
return initials;