fix(contacts): expose root country code

This commit is contained in:
Sojan Jose
2026-05-27 01:17:09 +05:30
parent 4705a5c3ff
commit 25c11ecc56
10 changed files with 29 additions and 6 deletions
@@ -96,6 +96,7 @@ const prepareStateBasedOnProps = () => {
name = '',
email: emailAddress,
phoneNumber,
countryCode: contactCountryCode = '',
additionalAttributes = {},
} = props.contactData || {};
const { firstName, lastName } = splitName(name || '');
@@ -122,7 +123,7 @@ const prepareStateBasedOnProps = () => {
additionalAttributes: {
description,
companyName,
countryCode,
countryCode: contactCountryCode || countryCode,
country,
city,
socialProfiles: {