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