IO-1492 Add estimator Presets

This commit is contained in:
Patrick Fic
2021-10-18 20:26:57 -07:00
parent 99196a77ed
commit e700095551
13 changed files with 218 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ export const PhoneItemFormatterValidation = (getFieldValue, name) => ({
return Promise.resolve();
} else {
const p = parsePhoneNumber(value, "CA");
if (p.isValid()) {
if (p && p.isValid()) {
return Promise.resolve();
} else {
return Promise.reject(i18n.t("general.validation.invalidphone"));