@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.
@@ -1243,8 +1243,11 @@ function CartProvider({
1243
1243
  newAttributes,
1244
1244
  customAttributesNeedRemove
1245
1245
  );
1246
+ const finalAttributes = newAttributes.filter(
1247
+ (attribute) => !customAttributesNeedRemove.find((a) => a.key === attribute.key)
1248
+ );
1246
1249
  if (needUpdate) {
1247
- return updateAttributes({ attributes: newAttributes });
1250
+ return updateAttributes({ attributes: finalAttributes });
1248
1251
  } else {
1249
1252
  return Promise.resolve(cart);
1250
1253
  }