@nuskin/product-components 3.17.12 → 3.17.13

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/docs/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [3.17.12](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.11...v3.17.12) (2024-08-28)
1
+ ## [3.17.13](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.12...v3.17.13) (2024-09-03)
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "bomFormat": "CycloneDX",
3
3
  "specVersion": "1.4",
4
- "serialNumber": "urn:uuid:00eba27e-5b80-4aba-a437-1021e90cecd4",
4
+ "serialNumber": "urn:uuid:8d5429e1-378d-445d-9bee-7bee8e3e7497",
5
5
  "version": 1,
6
6
  "metadata": {
7
- "timestamp": "2024-08-28T14:39:30Z",
7
+ "timestamp": "2024-09-03T18:32:39Z",
8
8
  "tools": [
9
9
  {
10
10
  "vendor": "GitLab",
11
11
  "name": "Gemnasium",
12
- "version": "5.5.0"
12
+ "version": "5.5.1"
13
13
  }
14
14
  ],
15
15
  "authors": [
@@ -246,7 +246,11 @@ const NsProductMixin = {
246
246
  return this.$NsProductUserService.isPreferredCustomer;
247
247
  },
248
248
  isWholesale() {
249
- return this.$NsProductUserService.isWholesale;
249
+ if (this.$NsProductUserService.isLoggedIn) {
250
+ return this.$NsProductUserService.isUserWholesale;
251
+ } else {
252
+ return this.$NsProductUserService.isWholesale;
253
+ }
250
254
  },
251
255
  loyaltyStatusAndLinks() {
252
256
  return this.marketConfig.loyalty || {};
@@ -657,7 +661,6 @@ const NsProductMixin = {
657
661
  // WARNING: this.product is volatile here. re-check is using this.product.
658
662
  this.maxQuantity = Math.min(
659
663
  shopProduct.maxQuantity,
660
- shopProduct.availableQuantity,
661
664
  productQuantity
662
665
  );
663
666
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.17.12",
3
+ "version": "3.17.13",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {