@pelcro/react-pelcro-js 4.0.0-alpha.89 → 4.0.0-alpha.90
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 +5 -0
- package/dist/index.esm.js +5 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -34746,12 +34746,17 @@ const PaymentMethodSelectModal = ({
|
|
|
34746
34746
|
};
|
|
34747
34747
|
|
|
34748
34748
|
const isUserHasAddress = userHasAddress();
|
|
34749
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
34749
34750
|
|
|
34750
34751
|
const goBack = () => {
|
|
34751
34752
|
if ((product && plan && product.address_required || order) && isUserHasAddress) {
|
|
34752
34753
|
return switchView("address-select");
|
|
34753
34754
|
}
|
|
34754
34755
|
|
|
34756
|
+
if (product && plan && view == "offer") {
|
|
34757
|
+
return switchView("offer");
|
|
34758
|
+
}
|
|
34759
|
+
|
|
34755
34760
|
if (product && plan) {
|
|
34756
34761
|
return switchView("plan-select");
|
|
34757
34762
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -34716,12 +34716,17 @@ const PaymentMethodSelectModal = ({
|
|
|
34716
34716
|
};
|
|
34717
34717
|
|
|
34718
34718
|
const isUserHasAddress = userHasAddress();
|
|
34719
|
+
const view = window.Pelcro.helpers.getURLParameter("view");
|
|
34719
34720
|
|
|
34720
34721
|
const goBack = () => {
|
|
34721
34722
|
if ((product && plan && product.address_required || order) && isUserHasAddress) {
|
|
34722
34723
|
return switchView("address-select");
|
|
34723
34724
|
}
|
|
34724
34725
|
|
|
34726
|
+
if (product && plan && view == "offer") {
|
|
34727
|
+
return switchView("offer");
|
|
34728
|
+
}
|
|
34729
|
+
|
|
34725
34730
|
if (product && plan) {
|
|
34726
34731
|
return switchView("plan-select");
|
|
34727
34732
|
}
|