@undp/carbon-library 1.0.292-CARBON-337.3 → 1.0.292-CARBON-337.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -21082,7 +21082,7 @@ var Economic = function (props) {
21082
21082
  if (changedFieldName.includes("1")) {
21083
21083
  var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
21084
21084
  var updatedEconomicDetails = __spreadArray([], economicDetails, true);
21085
- var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
21085
+ var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t("coBenifits:".concat(sectionName_1)); });
21086
21086
  updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
21087
21087
  if (field.name !== changedFieldName) {
21088
21088
  field.hide = changedFieldValue !== RadioButtonStatus.YES;