Skip to content

Commit 48a51a5

Browse files
committed
chore: better discord notification
1 parent 976a54c commit 48a51a5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

server/utils/helpers.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
export const getInitials = (name: string | null): string => {
22
if (!name) return "N/A";
3-
return name
4-
.split(" ")
5-
.map((n) => n[0])
6-
.join("");
3+
return name.split(" ").at(0) ?? "N/A";
74
};
85

96
export const getMemoryUrl = (origin: string, id: string) => {

0 commit comments

Comments
 (0)