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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6801,6 +6801,11 @@ 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
+ }
6804
6809
  }
6805
6810
  }
6806
6811
  return [2 /*return*/];
@@ -16269,7 +16274,7 @@ var InvestmentCreationComponent = function (props) {
16269
16274
  .unix();
16270
16275
  }
16271
16276
  payload.instrument = Array.isArray(payload.instrument) ? payload.instrument : [payload.instrument];
16272
- // payload.fromCompanyIds = data.companyId.map((e) => Number(e));
16277
+ payload.fromCompanyIds = data.companyId.map(function (e) { return Number(e); });
16273
16278
  payload.percentage = val.percentage;
16274
16279
  payload.toCompanyId = Number(payload.toCompanyId);
16275
16280
  _a.label = 1;
@@ -19057,8 +19062,7 @@ var NdcActionDetails = function (props) {
19057
19062
  var maximumImageSize = process.env.REACT_APP_MAXIMUM_FILE_SIZE
19058
19063
  ? parseInt(process.env.REACT_APP_MAXIMUM_FILE_SIZE)
19059
19064
  : 5000000;
19060
- //changing value to N2O. Previously it was N20(N-Two-Zero)
19061
- var ghgEmissionsGas = ["CO2", "CH4", "N2O", "HFCs", "PFCs", "SF6"];
19065
+ var ghgEmissionsGas = ["CO2", "CH4", "N20", "HFCs", "PFCs", "SF6"];
19062
19066
  React.useEffect(function () {
19063
19067
  if (programmeDetails) {
19064
19068
  setSector(programmeDetails === null || programmeDetails === void 0 ? void 0 : programmeDetails.sector);