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,
|
||||
additionalAttributes = {},
|
||||
} = props.contactData || {};
|
||||
const { firstName, lastName } = splitName(name);
|
||||
const { firstName, lastName } = splitName(name || '');
|
||||
const {
|
||||
description = '',
|
||||
companyName = '',
|
||||
|
||||
Reference in New Issue
Block a user