@nuskin/product-components 3.1.6 → 3.1.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.1.7](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.1.6...v3.1.7) (2022-08-13)
2
+
3
+
4
+ ### Fix
5
+
6
+ * [NsProductOffer] Show offer expired if there are no items in offer (#CX12-5289) ([53da0e2](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/53da0e2f3e3dd651b2131eeb4676abc5877d0325)), closes [#CX12-5289](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX12-5289)
7
+
1
8
  ## [3.1.6](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.1.5...v3.1.6) (2022-08-11)
2
9
 
3
10
 
@@ -527,7 +527,8 @@ export default {
527
527
  if (
528
528
  !responseObject ||
529
529
  responseObject.active === false ||
530
- responseObject.isDeleted
530
+ responseObject.isDeleted ||
531
+ (!responseObject.items && !responseObject.products)
531
532
  ) {
532
533
  this.offerExpired = true;
533
534
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {