@anker-in/shopify-react 1.2.0 → 1.2.1-beta.0
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 +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +2 -2
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.js
CHANGED
|
@@ -1525,7 +1525,7 @@ function getCartBasicAttributes({
|
|
|
1525
1525
|
const presellAttributes = [
|
|
1526
1526
|
{
|
|
1527
1527
|
key: "_presale",
|
|
1528
|
-
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell")
|
|
1528
|
+
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell") ? "true" : "false"
|
|
1529
1529
|
}
|
|
1530
1530
|
];
|
|
1531
1531
|
const weightAttributes = [
|
|
@@ -1570,7 +1570,7 @@ function getCartBasicAttributes({
|
|
|
1570
1570
|
const extraAttributesInCart = cart?.customAttributes?.filter(
|
|
1571
1571
|
(item) => !commonAttributes.some((attr) => attr.key === item.key)
|
|
1572
1572
|
) || [];
|
|
1573
|
-
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value);
|
|
1573
|
+
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value !== void 0 && item?.value !== null);
|
|
1574
1574
|
}
|
|
1575
1575
|
var useCartAttributes = ({
|
|
1576
1576
|
profile,
|