@anker-in/shopify-react 0.1.1-beta.52 → 0.1.1-beta.54

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
@@ -1379,7 +1379,7 @@ function getCartAttributes({
1379
1379
  },
1380
1380
  {
1381
1381
  key: "_member_type",
1382
- value: memberType ?? String(profile?.memberType)
1382
+ value: memberType ?? String(profile?.memberType ?? 0)
1383
1383
  },
1384
1384
  {
1385
1385
  key: "_user_type",
@@ -2363,7 +2363,7 @@ function useBuyNow({ withTrack = true } = {}, swrOptions) {
2363
2363
  fbqTrackConfig,
2364
2364
  customAttributes,
2365
2365
  metafieldIdentifiers,
2366
- redirectToCheckout
2366
+ redirectToCheckout = true
2367
2367
  } = arg;
2368
2368
  if (!lineItems || lineItems.length === 0) {
2369
2369
  return;
@@ -3269,7 +3269,7 @@ function CartProvider({
3269
3269
  profile,
3270
3270
  customer,
3271
3271
  cart,
3272
- memberType: hasPlusMember ? "2" : profile?.memberType
3272
+ memberType: hasPlusMember ? "2" : String(profile?.memberType ?? 0)
3273
3273
  });
3274
3274
  ahooks.useRequest(
3275
3275
  () => {