Merge pull request #2198 from Bilb/double-initial-uppercase

initials are always uppercased
pull/2203/head
Audric Ackermann 3 years ago committed by GitHub
commit 1967de460c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,7 +99,7 @@ export const AvatarPlaceHolder = (props: Props) => {
let initials = getInitials(name)?.toLocaleUpperCase() || '0';
if (name.indexOf(' ') === -1) {
initials = name.substring(0, 2);
initials = name.substring(0, 2).toLocaleUpperCase();
}
const fontSize = Math.floor(initials.length > 1 ? diameter * 0.4 : diameter * 0.5);

Loading…
Cancel
Save