@anker-in/shopify-react 0.1.1-beta.16 → 0.1.1-beta.17

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
@@ -2730,13 +2730,7 @@ var usePlusMemberItemCustomAttributes = ({
2730
2730
  }) => {
2731
2731
  const { deliveryCustomData } = deliveryData || {};
2732
2732
  return react.useMemo(() => {
2733
- const itemCustomAttributes = [
2734
- // _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
2735
- {
2736
- key: "_last_url",
2737
- value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
2738
- }
2739
- ];
2733
+ const itemCustomAttributes = [];
2740
2734
  if (deliveryCustomData?.is_presale) {
2741
2735
  itemCustomAttributes.push({
2742
2736
  key: "_is_presale",
@@ -2755,7 +2749,13 @@ var usePlusMemberCheckoutCustomAttributes = ({
2755
2749
  const { deliveryCustomData } = deliveryData || {};
2756
2750
  const { profile } = usePlusMemberContext();
2757
2751
  return react.useMemo(() => {
2758
- const checkoutCustomAttributes = [];
2752
+ const checkoutCustomAttributes = [
2753
+ // _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
2754
+ {
2755
+ key: "_last_url",
2756
+ value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
2757
+ }
2758
+ ];
2759
2759
  if (deliveryCustomData) {
2760
2760
  checkoutCustomAttributes.push({
2761
2761
  key: "_checkout_delivery_custom",