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

This commit is contained in:
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

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") {