From 714d9dcac36d31b714dcb3693d5a68b94ae91e04 Mon Sep 17 00:00:00 2001 From: Alexey Aristov Date: Fri, 20 Jun 2025 15:22:17 +0200 Subject: [PATCH] avoid 'null' first/last names when building combined name (#9318) Signed-off-by: Alexey Aristov --- plugins/contact/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/contact/src/utils.ts b/plugins/contact/src/utils.ts index 91c0a51e80..3b3916dd52 100644 --- a/plugins/contact/src/utils.ts +++ b/plugins/contact/src/utils.ts @@ -233,7 +233,7 @@ const SEP = ',' * @public */ export function combineName (first: string, last: string): string { - return last + SEP + first + return (last ?? '') + SEP + (first ?? '') } /**