Skip to content

Commit 714d9dc

Browse files
authored
avoid 'null' first/last names when building combined name (#9318)
Signed-off-by: Alexey Aristov <[email protected]>
1 parent 17d804e commit 714d9dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/contact/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const SEP = ','
233233
* @public
234234
*/
235235
export function combineName (first: string, last: string): string {
236-
return last + SEP + first
236+
return (last ?? '') + SEP + (first ?? '')
237237
}
238238

239239
/**

0 commit comments

Comments
 (0)