@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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -21103,7 +21103,7 @@ var Economic = function (props) {
|
|
21103
21103
|
if (changedFieldName.includes("1")) {
|
21104
21104
|
var sectionName_1 = changedFieldName.replace(/\d/g, "").replace("Q", "");
|
21105
21105
|
var updatedEconomicDetails = __spreadArray([], economicDetails, true);
|
21106
|
-
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t(sectionName_1); });
|
21106
|
+
var sectionIndex = updatedEconomicDetails.findIndex(function (section) { return section.section === t("coBenifits:".concat(sectionName_1)); });
|
21107
21107
|
updatedEconomicDetails[sectionIndex].fields.forEach(function (field) {
|
21108
21108
|
if (field.name !== changedFieldName) {
|
21109
21109
|
field.hide = changedFieldValue !== exports.RadioButtonStatus.YES;
|