From 7a3443cd66553284b736446bbcc776ec188701c9 Mon Sep 17 00:00:00 2001 From: maxceem Date: Thu, 24 Sep 2020 16:14:03 +0300 Subject: [PATCH] fix: don't show warning without business phone ref issue #4103 --- .../settings/routes/profile/components/ProfileSettingsForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx b/src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx index e501a337d..919cc0d9a 100644 --- a/src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx +++ b/src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx @@ -310,7 +310,7 @@ class ProfileSettingsForm extends Component { required={fieldsConfig.country} validationError="Please enter Country" /> - {this.state.countrySelectionDirty && ( + {this.state.countrySelectionDirty && !_.isUndefined(fieldsConfig.businessPhone) && (
Note: Changing the country also updates the country code of business phone.