@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/index.js CHANGED
@@ -1694,7 +1694,7 @@ function getCartBasicAttributes({
1694
1694
  const presellAttributes = [
1695
1695
  {
1696
1696
  key: "_presale",
1697
- value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell")
1697
+ value: cart?.lineItems?.some((item) => item?.variant?.metafields?.presell === "presell") ? "true" : "false"
1698
1698
  }
1699
1699
  ];
1700
1700
  const weightAttributes = [
@@ -1739,7 +1739,7 @@ function getCartBasicAttributes({
1739
1739
  const extraAttributesInCart = cart?.customAttributes?.filter(
1740
1740
  (item) => !commonAttributes.some((attr) => attr.key === item.key)
1741
1741
  ) || [];
1742
- return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value);
1742
+ return [...commonAttributes, ...extraAttributesInCart].filter((item) => item?.value !== void 0 && item?.value !== null);
1743
1743
  }
1744
1744
  var useCartAttributes = ({
1745
1745
  profile,