@crystaldesign/diva-utils 24.13.0-beta.12 → 24.13.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -437,7 +437,7 @@ var DivaUtils = /*#__PURE__*/function () {
437
437
  }, {
438
438
  key: "formatPrice",
439
439
  value: function formatPrice(price, priceFormat) {
440
- if (price == undefined) return '';
440
+ if (price == undefined || isNaN(price)) return '';
441
441
  var retPrice;
442
442
  var priceFormatToUse = priceFormat ? priceFormat : this.defaultPriceFormat;
443
443
  retPrice = format(price, priceFormatToUse);
@@ -419,7 +419,7 @@ var DivaUtils = /*#__PURE__*/function () {
419
419
  }, {
420
420
  key: "formatPrice",
421
421
  value: function formatPrice(price, priceFormat) {
422
- if (price == undefined) return '';
422
+ if (price == undefined || isNaN(price)) return '';
423
423
  var retPrice;
424
424
  var priceFormatToUse = priceFormat ? priceFormat : this.defaultPriceFormat;
425
425
  retPrice = format(price, priceFormatToUse);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-utils",
3
- "version": "24.13.0-beta.12",
3
+ "version": "24.13.0-beta.13",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -24,5 +24,5 @@
24
24
  "module": "build/esm/index.js",
25
25
  "types": "./build/types/utils/src/index.d.ts",
26
26
  "main": "build/cjs/index.js",
27
- "gitHead": "3b78233799c285a15d9c5f9f4d9591d2e587c926"
27
+ "gitHead": "30fb942540a6c1127d739107d457ec3530825ee7"
28
28
  }