@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 +7 -0
- package/components/NsProductOffer.vue +5 -2
- package/package.json +1 -1
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
|
|
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
|
-
|
|
504
|
+
responseObject.active === false ||
|
|
502
505
|
responseObject.isDeleted ||
|
|
503
506
|
(responseObject.expirationDate &&
|
|
504
507
|
new Date(responseObject.expirationDate).getTime() <=
|