name can be undefined for existing `name` type fields (#10298)

pull/10297/head^2
Hariom Balhara 2023-07-21 20:44:39 +05:30 committed by GitHub
parent d55404b3aa
commit 299f74c1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export const preprocessNameFieldDataWithVariant = (
export const getFullName = (name: string | { firstName: string; lastName?: string }) => {
if (!name) {
return name;
return "";
}
let nameString = "";
if (typeof name === "string") {