@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.mjs
CHANGED
|
@@ -1516,7 +1516,7 @@ function getCartBasicAttributes({
|
|
|
1516
1516
|
const presellAttributes = [
|
|
1517
1517
|
{
|
|
1518
1518
|
key: "_presale",
|
|
1519
|
-
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell")
|
|
1519
|
+
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell") ? "true" : "false"
|
|
1520
1520
|
}
|
|
1521
1521
|
];
|
|
1522
1522
|
const weightAttributes = [
|
|
@@ -1561,7 +1561,7 @@ function getCartBasicAttributes({
|
|
|
1561
1561
|
const extraAttributesInCart = cart?.customAttributes?.filter(
|
|
1562
1562
|
(item) => !commonAttributes.some((attr) => attr.key === item.key)
|
|
1563
1563
|
) || [];
|
|
1564
|
-
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value);
|
|
1564
|
+
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value !== void 0 && item?.value !== null);
|
|
1565
1565
|
}
|
|
1566
1566
|
var useCartAttributes = ({
|
|
1567
1567
|
profile,
|