@nuskin/product-components 3.1.3 → 3.1.4

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.4](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.1.3...v3.1.4) (2022-06-13)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Update so that personal offer works with no active flag set (#CX12-5158) ([fc85155](https://code.tls.nuskin.io/ns-am/ux/product-components/commit/fc851553e9af0a1c49758b54bc464095f97390a8)), closes [#CX12-5158](https://code.tls.nuskin.io/ns-am/ux/product-components/issues/CX12-5158)
7
+
1
8
  ## [3.1.3](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.1.2...v3.1.3) (2022-06-07)
2
9
 
3
10
 
@@ -264,7 +264,10 @@ export default {
264
264
  return (this.offer || {}).pitchID || this.offerId || this.queryOfferId;
265
265
  },
266
266
  isPersonalOffer() {
267
- return !!this.localOfferId && !!(this.offer || {}).active;
267
+ return (
268
+ !!this.localOfferId &&
269
+ ((this.offer || {}).active === undefined || !!(this.offer || {}).active)
270
+ );
268
271
  },
269
272
  disableAddAll() {
270
273
  return this.offerLoading || this.totalProductQuantity === 0;
@@ -498,7 +501,7 @@ export default {
498
501
 
499
502
  if (
500
503
  !responseObject ||
501
- !responseObject.active ||
504
+ responseObject.active === false ||
502
505
  responseObject.isDeleted ||
503
506
  (responseObject.expirationDate &&
504
507
  new Date(responseObject.expirationDate).getTime() <=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {