mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-20 11:08:46 +00:00
lint: formatted changes using biome
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user