@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/index.js
CHANGED
|
@@ -3608,8 +3608,11 @@ function CartProvider({
|
|
|
3608
3608
|
newAttributes,
|
|
3609
3609
|
customAttributesNeedRemove
|
|
3610
3610
|
);
|
|
3611
|
+
const finalAttributes = newAttributes.filter(
|
|
3612
|
+
(attribute) => !customAttributesNeedRemove.find((a) => a.key === attribute.key)
|
|
3613
|
+
);
|
|
3611
3614
|
if (needUpdate) {
|
|
3612
|
-
return updateAttributes({ attributes:
|
|
3615
|
+
return updateAttributes({ attributes: finalAttributes });
|
|
3613
3616
|
} else {
|
|
3614
3617
|
return Promise.resolve(cart);
|
|
3615
3618
|
}
|