fix: Contact form breaks if name is empty (#10597)
- Handles the case where the form and contact display page breaks if name is `null`
This commit is contained in:
@@ -94,7 +94,7 @@ const prepareStateBasedOnProps = () => {
|
|||||||
phoneNumber,
|
phoneNumber,
|
||||||
additionalAttributes = {},
|
additionalAttributes = {},
|
||||||
} = props.contactData || {};
|
} = props.contactData || {};
|
||||||
const { firstName, lastName } = splitName(name);
|
const { firstName, lastName } = splitName(name || '');
|
||||||
const {
|
const {
|
||||||
description = '',
|
description = '',
|
||||||
companyName = '',
|
companyName = '',
|
||||||
|
|||||||
Reference in New Issue
Block a user