@undp/carbon-library 1.0.274-CARBON-404.2 → 1.0.274-CARBON-404.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6315,7 +6315,12 @@ var AddNewCompanyComponent = function (props) {
6315
6315
  requestData.company.logo = logoUrls[1];
6316
6316
  if (companyRole === exports.CompanyRole.MINISTRY) {
6317
6317
  requestData.company.name =
6318
- "Ministry of " + requestData.company.ministry;
6318
+ "Ministry of " +
6319
+ (requestData.company.ministry === "ScienceAndTechnology")
6320
+ ? "Science And Technology"
6321
+ : requestData.company.ministry === "WaterResources"
6322
+ ? "Water Resources"
6323
+ : requestData.company.ministry;
6319
6324
  }
6320
6325
  if (!isGuest) return [3 /*break*/, 4];
6321
6326
  return [4 /*yield*/, post("national/user/register", requestData)];
@@ -6418,7 +6423,12 @@ var AddNewCompanyComponent = function (props) {
6418
6423
  else {
6419
6424
  values.govDep = formOneValues.govDep;
6420
6425
  }
6421
- values.name = "Ministry of " + formOneValues.ministry;
6426
+ values.name =
6427
+ "Ministry of " + (formOneValues.ministry === "ScienceAndTechnology")
6428
+ ? "Science And Technology"
6429
+ : formOneValues.ministry === "WaterResources"
6430
+ ? "Water Resources"
6431
+ : formOneValues.ministry;
6422
6432
  }
6423
6433
  if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === exports.CompanyRole.GOVERNMENT) {
6424
6434
  values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
@@ -6599,7 +6609,11 @@ var AddNewCompanyComponent = function (props) {
6599
6609
  message: "Ministry Name is required",
6600
6610
  },
6601
6611
  ] },
6602
- React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, Object.values(exports.Ministry).map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, (ministry === "ScienceAndTechnology") ? "Science And Technology" : (ministry === "WaterResources") ? "Water Resources" : ministry)); }))),
6612
+ React.createElement(antd.Select, { size: "large", onChange: onChangeMinistry }, Object.values(exports.Ministry).map(function (ministry) { return (React.createElement(antd.Select.Option, { value: ministry }, ministry === "ScienceAndTechnology"
6613
+ ? "Science And Technology"
6614
+ : ministry === "WaterResources"
6615
+ ? "Water Resources"
6616
+ : ministry)); }))),
6603
6617
  React.createElement(antd.Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.nameOfMinister, rules: [
6604
6618
  {
6605
6619
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {