@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/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +4 -1
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +4 -1
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/provider/index.js
CHANGED
|
@@ -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:
|
|
1259
|
+
return updateAttributes({ attributes: finalAttributes });
|
|
1257
1260
|
} else {
|
|
1258
1261
|
return Promise.resolve(cart);
|
|
1259
1262
|
}
|