@anker-in/shopify-react 1.2.1 → 1.2.2-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.mjs CHANGED
@@ -3600,8 +3600,11 @@ function CartProvider({
3600
3600
  newAttributes,
3601
3601
  customAttributesNeedRemove
3602
3602
  );
3603
+ const finalAttributes = newAttributes.filter(
3604
+ (attribute) => !customAttributesNeedRemove.find((a) => a.key === attribute.key)
3605
+ );
3603
3606
  if (needUpdate) {
3604
- return updateAttributes({ attributes: newAttributes });
3607
+ return updateAttributes({ attributes: finalAttributes });
3605
3608
  } else {
3606
3609
  return Promise.resolve(cart);
3607
3610
  }