@undp/carbon-library 1.0.305-CARBON-239.0 → 1.0.305-CARBON-234.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6550,7 +6550,7 @@ var AddNewCompanyComponent = function (props) {
6550
6550
  }); },
6551
6551
  },
6552
6552
  ] },
6553
- React.createElement(antd.Input, { size: "large" })))
6553
+ React.createElement(antd.Input, { disabled: isUpdate, size: "large" })))
6554
6554
  : null,
6555
6555
  companyRole !== exports.CompanyRole.MINISTRY
6556
6556
  ? (!isUpdate ||
@@ -6801,11 +6801,6 @@ var AddNewCompanyComponent = function (props) {
6801
6801
  phoneNo === undefined) {
6802
6802
  throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6803
6803
  }
6804
- else {
6805
- if (!PhoneInput.isPossiblePhoneNumber(String(value))) {
6806
- throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isInvalid")));
6807
- }
6808
- }
6809
6804
  }
6810
6805
  }
6811
6806
  return [2 /*return*/];