avoid 'null' first/last names when building combined name (#9318)

Signed-off-by: Alexey Aristov <aav@acm.org>
This commit is contained in:
Alexey Aristov
2025-06-20 15:22:17 +02:00
committed by GitHub
parent 17d804e639
commit 714d9dcac3
+1 -1
View File
@@ -233,7 +233,7 @@ const SEP = ','
* @public
*/
export function combineName (first: string, last: string): string {
return last + SEP + first
return (last ?? '') + SEP + (first ?? '')
}
/**