@anker-in/shopify-react 1.1.0 → 1.1.1-beta.1

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/dist/index.js CHANGED
@@ -1411,7 +1411,8 @@ function getCartAttributes({
1411
1411
  {
1412
1412
  key: "_weight",
1413
1413
  value: cart?.lineItems.reduce((acc, item) => {
1414
- return new Decimal2__default.default(acc).plus(item.variant.weight ?? 0).toNumber();
1414
+ const itemWeight = new Decimal2__default.default(item.variant.weight ?? 0).times(item.quantity);
1415
+ return new Decimal2__default.default(acc).plus(itemWeight).toNumber();
1415
1416
  }, 0).toString()
1416
1417
  },
1417
1418
  {