@nuskin/ns-product-lib 2.8.0-cx24-3684.2 → 2.8.0-cx24-3684.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.8.0-cx24-3684.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.2...v2.8.0-cx24-3684.3) (2023-04-17)
2
+
3
+
4
+ ### Update
5
+
6
+ * fix promotion price (#CX24-3684) ([7a1a2bc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/7a1a2bcb4d9f05e57c77f71d5a17dec595578e14)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
7
+
1
8
  # [2.8.0-cx24-3684.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.1...v2.8.0-cx24-3684.2) (2023-04-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.8.0-cx24-3684.2",
3
+ "version": "2.8.0-cx24-3684.3",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/product.js CHANGED
@@ -262,7 +262,7 @@ const Product = function (productData) {
262
262
 
263
263
  if (option.isEqPromotion) {
264
264
  //retain product.price as original price
265
- this.setPrice(this.price);
265
+ this.setPrice(this.price || this.getPricing(priceType));
266
266
  this.setCv(this.getCvWithType(priceType));
267
267
  this.setPv(this.getPvWithType(priceType));
268
268
  this.priceType = priceType;