@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/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +2 -2
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1371,7 +1371,7 @@ function getCartAttributes({
|
|
|
1371
1371
|
},
|
|
1372
1372
|
{
|
|
1373
1373
|
key: "_member_type",
|
|
1374
|
-
value: memberType ?? String(profile?.memberType)
|
|
1374
|
+
value: memberType ?? String(profile?.memberType ?? 0)
|
|
1375
1375
|
},
|
|
1376
1376
|
{
|
|
1377
1377
|
key: "_user_type",
|
|
@@ -2355,7 +2355,7 @@ function useBuyNow({ withTrack = true } = {}, swrOptions) {
|
|
|
2355
2355
|
fbqTrackConfig,
|
|
2356
2356
|
customAttributes,
|
|
2357
2357
|
metafieldIdentifiers,
|
|
2358
|
-
redirectToCheckout
|
|
2358
|
+
redirectToCheckout = true
|
|
2359
2359
|
} = arg;
|
|
2360
2360
|
if (!lineItems || lineItems.length === 0) {
|
|
2361
2361
|
return;
|
|
@@ -3261,7 +3261,7 @@ function CartProvider({
|
|
|
3261
3261
|
profile,
|
|
3262
3262
|
customer,
|
|
3263
3263
|
cart,
|
|
3264
|
-
memberType: hasPlusMember ? "2" : profile?.memberType
|
|
3264
|
+
memberType: hasPlusMember ? "2" : String(profile?.memberType ?? 0)
|
|
3265
3265
|
});
|
|
3266
3266
|
useRequest(
|
|
3267
3267
|
() => {
|