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

This commit is contained in:
Hariom Balhara
2023-07-21 15:14:39 +00:00
committed by GitHub
parent d55404b3aa
commit 299f74c1fb
+1 -1
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") {