@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/esm/index.js CHANGED
@@ -17258,6 +17258,9 @@ var NdcActionDetails = function (props) {
17258
17258
  if (value < 0) {
17259
17259
  throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
17260
17260
  }
17261
+ if (!Number.isInteger(value)) {
17262
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
17263
+ }
17261
17264
  return [2 /*return*/];
17262
17265
  });
17263
17266
  }); },
@@ -17287,6 +17290,9 @@ var NdcActionDetails = function (props) {
17287
17290
  if (value < 0) {
17288
17291
  throw new Error("".concat(t("ndcAction:allowOnlyNumericValue")));
17289
17292
  }
17293
+ if (!Number.isInteger(value)) {
17294
+ throw new Error("".concat(t("ndcAction:allowOnlyIntegerValue")));
17295
+ }
17290
17296
  return [2 /*return*/];
17291
17297
  });
17292
17298
  }); },