@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.mjs CHANGED
@@ -2722,13 +2722,7 @@ var usePlusMemberItemCustomAttributes = ({
2722
2722
  }) => {
2723
2723
  const { deliveryCustomData } = deliveryData || {};
2724
2724
  return useMemo(() => {
2725
- const itemCustomAttributes = [
2726
- // _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
2727
- {
2728
- key: "_last_url",
2729
- value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
2730
- }
2731
- ];
2725
+ const itemCustomAttributes = [];
2732
2726
  if (deliveryCustomData?.is_presale) {
2733
2727
  itemCustomAttributes.push({
2734
2728
  key: "_is_presale",
@@ -2747,7 +2741,13 @@ var usePlusMemberCheckoutCustomAttributes = ({
2747
2741
  const { deliveryCustomData } = deliveryData || {};
2748
2742
  const { profile } = usePlusMemberContext();
2749
2743
  return useMemo(() => {
2750
- const checkoutCustomAttributes = [];
2744
+ const checkoutCustomAttributes = [
2745
+ // _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
2746
+ {
2747
+ key: "_last_url",
2748
+ value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
2749
+ }
2750
+ ];
2751
2751
  if (deliveryCustomData) {
2752
2752
  checkoutCustomAttributes.push({
2753
2753
  key: "_checkout_delivery_custom",