@pelcro/react-pelcro-js 4.0.0-alpha.88 → 4.0.0-alpha.89
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.cjs.js +10 -0
- package/dist/index.esm.js +10 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -30696,6 +30696,7 @@ const AddressCreateModal = ({
|
|
|
30696
30696
|
return addresses.length > 0;
|
|
30697
30697
|
};
|
|
30698
30698
|
|
|
30699
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
30699
30700
|
const isUserHasAddress = userHasAddress();
|
|
30700
30701
|
|
|
30701
30702
|
const goBack = () => {
|
|
@@ -30707,6 +30708,10 @@ const AddressCreateModal = ({
|
|
|
30707
30708
|
return switchView("address-select");
|
|
30708
30709
|
}
|
|
30709
30710
|
|
|
30711
|
+
if (product && plan && view == "offer") {
|
|
30712
|
+
return switchView("offer");
|
|
30713
|
+
}
|
|
30714
|
+
|
|
30710
30715
|
if (product && plan) {
|
|
30711
30716
|
return switchView("plan-select");
|
|
30712
30717
|
}
|
|
@@ -34331,8 +34336,13 @@ const AddressSelectModal = ({
|
|
|
34331
34336
|
};
|
|
34332
34337
|
|
|
34333
34338
|
const showBackButton = Boolean(product && plan && !giftRecipient || order);
|
|
34339
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
34334
34340
|
|
|
34335
34341
|
const goBack = () => {
|
|
34342
|
+
if (product && plan && view == "offer") {
|
|
34343
|
+
return switchView("offer");
|
|
34344
|
+
}
|
|
34345
|
+
|
|
34336
34346
|
if (product && plan) {
|
|
34337
34347
|
return switchView("plan-select");
|
|
34338
34348
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -30666,6 +30666,7 @@ const AddressCreateModal = ({
|
|
|
30666
30666
|
return addresses.length > 0;
|
|
30667
30667
|
};
|
|
30668
30668
|
|
|
30669
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
30669
30670
|
const isUserHasAddress = userHasAddress();
|
|
30670
30671
|
|
|
30671
30672
|
const goBack = () => {
|
|
@@ -30677,6 +30678,10 @@ const AddressCreateModal = ({
|
|
|
30677
30678
|
return switchView("address-select");
|
|
30678
30679
|
}
|
|
30679
30680
|
|
|
30681
|
+
if (product && plan && view == "offer") {
|
|
30682
|
+
return switchView("offer");
|
|
30683
|
+
}
|
|
30684
|
+
|
|
30680
30685
|
if (product && plan) {
|
|
30681
30686
|
return switchView("plan-select");
|
|
30682
30687
|
}
|
|
@@ -34301,8 +34306,13 @@ const AddressSelectModal = ({
|
|
|
34301
34306
|
};
|
|
34302
34307
|
|
|
34303
34308
|
const showBackButton = Boolean(product && plan && !giftRecipient || order);
|
|
34309
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
34304
34310
|
|
|
34305
34311
|
const goBack = () => {
|
|
34312
|
+
if (product && plan && view == "offer") {
|
|
34313
|
+
return switchView("offer");
|
|
34314
|
+
}
|
|
34315
|
+
|
|
34306
34316
|
if (product && plan) {
|
|
34307
34317
|
return switchView("plan-select");
|
|
34308
34318
|
}
|