@undp/carbon-library 1.0.133-NAM-17.3 → 1.0.133-NAM-17.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -17278,6 +17278,9 @@ var NdcActionDetails = function (props) {
17278
17278
  if (value < 0) {
17279
17279
  throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
17280
17280
  }
17281
+ if (!Number.isInteger(value)) {
17282
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
17283
+ }
17281
17284
  return [2 /*return*/];
17282
17285
  });
17283
17286
  }); },
@@ -17307,6 +17310,9 @@ var NdcActionDetails = function (props) {
17307
17310
  if (value < 0) {
17308
17311
  throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
17309
17312
  }
17313
+ if (!Number.isInteger(value)) {
17314
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
17315
+ }
17310
17316
  return [2 /*return*/];
17311
17317
  });
17312
17318
  }); },