@anker-in/shopify-react 1.2.2-beta.4 → 1.2.2-beta.5

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.mjs CHANGED
@@ -1167,7 +1167,7 @@ var initSameLinesAttributes = ({
1167
1167
  line
1168
1168
  }) => {
1169
1169
  const sameLineInCart = cart?.lineItems.find(
1170
- (lineInCart) => lineInCart.variant.sku === line.variant?.sku && lineInCart.product?.handle === line.variant?.product?.handle
1170
+ (lineInCart) => lineInCart.variant.id === line.variant?.id
1171
1171
  );
1172
1172
  const codeAmountAttribute = sameLineInCart?.customAttributes?.find(
1173
1173
  (attr) => attr.key === CODE_AMOUNT_KEY