@nuskin/ns-shop 7.7.0-pa-87.3 → 7.7.0-pa-87.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.7.0-pa-87.3",
3
+ "version": "7.7.0-pa-87.4",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -6,7 +6,7 @@ import {AdrService, Product, ScanCard, CurrencyService} from '@nuskin/ns-shop';
6
6
  import {UserService, AccountManager} from '@nuskin/ns-account';
7
7
  import ProductService from './productService';
8
8
  import Cart from './cart.js';
9
- import OrderType from '../order/orderType.js';
9
+ import {OrderType} from '../order/orderType.js';
10
10
  import AdrEditService from '../adr/AdrEditService.js';
11
11
  import QualificationService from '@nuskin/exclusive-offer-sdk'
12
12
  import {ProductStatus} from '@nuskin/ns-product-lib';
@@ -302,9 +302,9 @@ function hasPreviewItems() {
302
302
  }
303
303
 
304
304
  function _getItemsByOrderType(orderType) {
305
- if (orderType.SHIP_IMMEDIATE) return getItemData({cartItems: true});
306
- else if (orderType == OrderType.ADR_CREATE) return getItemData({cartAdrItems: true});
307
- else return getItemData({cartOrderItems: true});
305
+ if (orderType == OrderType.SHIP_IMMEDIATE) return _getCart().getItems({cartItems: true});
306
+ else if (orderType == OrderType.ADR_CREATE) return _getCart().getItems({cartAdrItems: true});
307
+ else return _getCart().getItems({cartOrderItems: true});
308
308
  }
309
309
 
310
310
  function hasDangerousGoods(orderType) {