@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/provider/index.js
CHANGED
|
@@ -874,7 +874,7 @@ function getCartBasicAttributes({
|
|
|
874
874
|
const presellAttributes = [
|
|
875
875
|
{
|
|
876
876
|
key: "_presale",
|
|
877
|
-
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell")
|
|
877
|
+
value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell") ? "true" : "false"
|
|
878
878
|
}
|
|
879
879
|
];
|
|
880
880
|
const weightAttributes = [
|
|
@@ -919,7 +919,7 @@ function getCartBasicAttributes({
|
|
|
919
919
|
const extraAttributesInCart = cart?.customAttributes?.filter(
|
|
920
920
|
(item) => !commonAttributes.some((attr) => attr.key === item.key)
|
|
921
921
|
) || [];
|
|
922
|
-
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value);
|
|
922
|
+
return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value !== void 0 && item?.value !== null);
|
|
923
923
|
}
|
|
924
924
|
var useCartAttributes = ({
|
|
925
925
|
profile,
|