@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.
@@ -1252,8 +1252,11 @@ function CartProvider({
1252
1252
  newAttributes,
1253
1253
  customAttributesNeedRemove
1254
1254
  );
1255
+ const finalAttributes = newAttributes.filter(
1256
+ (attribute) => !customAttributesNeedRemove.find((a) => a.key === attribute.key)
1257
+ );
1255
1258
  if (needUpdate) {
1256
- return updateAttributes({ attributes: newAttributes });
1259
+ return updateAttributes({ attributes: finalAttributes });
1257
1260
  } else {
1258
1261
  return Promise.resolve(cart);
1259
1262
  }