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 }) => {
|
export const getFullName = (name: string | { firstName: string; lastName?: string }) => {
|
||||||
if (!name) {
|
if (!name) {
|
||||||
return name;
|
return "";
|
||||||
}
|
}
|
||||||
let nameString = "";
|
let nameString = "";
|
||||||
if (typeof name === "string") {
|
if (typeof name === "string") {
|
||||||
|
|
Loading…
Reference in New Issue