@crystaldesign/diva-utils 24.13.0-beta.12 → 24.13.0-beta.14
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.
- package/build/cjs/index.js +1 -1
- package/build/esm/index.js +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -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);
|
package/build/esm/index.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "24.13.0-beta.14",
|
|
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": "
|
|
27
|
+
"gitHead": "c839d77b640aa2f10b16c8d91a1db3ea8b80e7ec"
|
|
28
28
|
}
|