mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
avoid 'null' first/last names when building combined name (#9318)
Signed-off-by: Alexey Aristov <aav@acm.org>
This commit is contained in:
@@ -233,7 +233,7 @@ const SEP = ','
|
||||
* @public
|
||||
*/
|
||||
export function combineName (first: string, last: string): string {
|
||||
return last + SEP + first
|
||||
return (last ?? '') + SEP + (first ?? '')
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user