fix case when country is not selected by user in site settings company address
This commit is contained in:
parent
b989a53ea1
commit
0374a0218b
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ export const SiteSettings: React.FC<SiteSettingsProps> = ({ params }) => {
|
||||||
? {
|
? {
|
||||||
city: data.city,
|
city: data.city,
|
||||||
companyName: data.companyName,
|
companyName: data.companyName,
|
||||||
country: findInEnum(data.country, CountryCode),
|
country: maybe(() =>
|
||||||
|
findInEnum(data.country, CountryCode)
|
||||||
|
),
|
||||||
countryArea: data.countryArea,
|
countryArea: data.countryArea,
|
||||||
phone: data.phone,
|
phone: data.phone,
|
||||||
postalCode: data.postalCode,
|
postalCode: data.postalCode,
|
||||||
|
|
Loading…
Reference in a new issue