Fix avatar from name to support lowercase

This commit is contained in:
ayumi-signal 2023-09-28 16:31:58 -04:00 committed by GitHub
parent e3750ef471
commit 72d1695612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 9 deletions

View file

@ -22,7 +22,7 @@ export function getInitials(name?: string): string | undefined {
return parsedName;
}
const parts = parsedName.toUpperCase().split(' ');
const parts = parsedName.split(' ');
const partsLen = parts.length;
return partsLen === 1