@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.
@@ -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,