lint: formatted changes using biome

This commit is contained in:
Daniele Pintore
2025-07-28 23:39:06 +02:00
parent f8261b5364
commit f9210d3165
3 changed files with 19 additions and 11 deletions
+9 -7
View File
@@ -28,11 +28,13 @@ export function formatTimestamp(timestamp: string | number) {
}
}
export function getFallbackAvatarInitials(fullName: string | undefined): string {
if (typeof fullName === "undefined" || fullName === "") return "CN";
const [ name = "", surname = "" ] = fullName.split(" ");
if (surname === "") {
return (name.substring(0,2)).toUpperCase();
}
return (name.charAt(0) + surname.charAt(0)).toUpperCase();
export function getFallbackAvatarInitials(
fullName: string | undefined,
): string {
if (typeof fullName === "undefined" || fullName === "") return "CN";
const [name = "", surname = ""] = fullName.split(" ");
if (surname === "") {
return name.substring(0, 2).toUpperCase();
}
return (name.charAt(0) + surname.charAt(0)).toUpperCase();
}