name can be undefined for existing `name` type fields (#10298)
parent
d55404b3aa
commit
299f74c1fb
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue