fix(ui): cap first letters of initials

This commit is contained in:
sylenien 2022-12-12 13:27:41 +01:00
parent dcb4e91e5b
commit 9526eb9742

View file

@ -369,7 +369,7 @@ export const compareJsonObjects = (obj1: any, obj2: any) => {
export const getInitials = (name: any) => {
const names = name.split(' ');
return names.slice(0, 2).map((n: any) => n[0]).join('');
return names.slice(0, 2).map((n: any) => n[0].toUpperCase()).join('');
}
export function getTimelinePosition(value: any, scale: any) {
const pos = value * scale;