@anker-in/shopify-react 1.1.0-beta.1 → 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.
@@ -1288,7 +1288,8 @@ function getCartAttributes({
1288
1288
  {
1289
1289
  key: "_weight",
1290
1290
  value: cart?.lineItems.reduce((acc, item) => {
1291
- return new Decimal2__default.default(acc).plus(item.variant.weight ?? 0).toNumber();
1291
+ const itemWeight = new Decimal2__default.default(item.variant.weight ?? 0).times(item.quantity);
1292
+ return new Decimal2__default.default(acc).plus(itemWeight).toNumber();
1292
1293
  }, 0).toString()
1293
1294
  },
1294
1295
  {