@nuskin/product-components 3.17.15-brw-4541.1 → 3.17.15
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/.releaserc +1 -1
- package/docs/CHANGELOG.md +1 -1
- package/mixins/NsProductMixin.js +4 -1
- package/package.json +1 -1
package/.releaserc
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.17.15
|
|
1
|
+
## [3.17.15](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.14...v3.17.15) (2024-09-17)
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -714,7 +714,10 @@ const NsProductMixin = {
|
|
|
714
714
|
this.statusMessage = "";
|
|
715
715
|
this.statusMessageKey = "releasedForSale";
|
|
716
716
|
//BRW-4541 -- Only allow to purchase the atpQuantity if backorder date is in the past
|
|
717
|
-
this.
|
|
717
|
+
this.maxQuantity = Math.min(
|
|
718
|
+
this.product.maxQuantity,
|
|
719
|
+
this.product.availableQuantity
|
|
720
|
+
);
|
|
718
721
|
} else {
|
|
719
722
|
this.statusMessage = this.localTranslations.outOfStock;
|
|
720
723
|
this.statusMessageKey = "outOfStock";
|