@nuskin/ns-shop 7.9.0-6056-insider.1 → 7.9.0-6056-insider.2

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.9.0-6056-insider.1",
3
+ "version": "7.9.0-6056-insider.2",
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": {
@@ -320,7 +320,7 @@ function getCartWeight(orderType) {
320
320
  let retVal = 0.0;
321
321
 
322
322
  _getItemsByOrderType(orderType).forEach((item) => {
323
- retVal += item.qty * (item.product.grossWeight || 0.0);
323
+ retVal += Math.round((item.qty * (item.product.grossWeight || 0.0) * 1000)) / 1000;
324
324
  });
325
325
  return retVal;
326
326
  }
@@ -186,9 +186,11 @@ let PickupUtil = function() {
186
186
  const storedShipData = getShipToData(storedPayload.order);
187
187
  same = payload.country === storedPayload.country &&
188
188
  payload.dangerousGoods === storedPayload.dangerousGoods &&
189
+ payload.weight === storedPayload.weight &&
189
190
  shipData.country === storedShipData.country &&
190
191
  shipData.postalCode === storedShipData.postalCode &&
191
192
  shipData.line1 === storedShipData.line1 &&
193
+ shipData.line2 === storedShipData.line2 &&
192
194
  shipData.city === storedShipData.city
193
195
  }
194
196
  return same