@saasquatch/mint-components 1.9.1 → 1.9.2-0
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/cjs/sqm-banking-info-form_16.cjs.entry.js +12 -7
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +12 -7
- package/dist/esm/sqm-banking-info-form_16.entry.js +12 -7
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-6ffed27b.system.js +1 -1
- package/dist/mint-components/p-8d34ff00.system.entry.js +1 -0
- package/dist/mint-components/{p-339ae6e1.entry.js → p-f48a6a82.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-e8e07d8d.system.entry.js +0 -1
|
@@ -1019,14 +1019,19 @@ function useBankingInfoForm(props) {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
1022
|
-
if (initialData.paymentMethod === "PAYPAL"
|
|
1023
|
-
paymentOption.defaultFinancePaymentMethodId === 7)
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1022
|
+
if (initialData.paymentMethod === "PAYPAL") {
|
|
1023
|
+
if (paymentOption.defaultFinancePaymentMethodId === 7) {
|
|
1024
|
+
return true;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
else {
|
|
1028
|
+
if (paymentOption.countryCode === initialData.bankCountry)
|
|
1029
|
+
return true;
|
|
1030
|
+
}
|
|
1031
|
+
return false;
|
|
1028
1032
|
});
|
|
1029
|
-
|
|
1033
|
+
if (initialData.paymentMethod !== "PAYPAL")
|
|
1034
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1030
1035
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
1031
1036
|
? "toPayPalAccount"
|
|
1032
1037
|
: "toBankAccount");
|
|
@@ -126,14 +126,19 @@ export function useBankingInfoForm(props) {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
129
|
-
if (initialData.paymentMethod === "PAYPAL"
|
|
130
|
-
paymentOption.defaultFinancePaymentMethodId === 7)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
if (initialData.paymentMethod === "PAYPAL") {
|
|
130
|
+
if (paymentOption.defaultFinancePaymentMethodId === 7) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
if (paymentOption.countryCode === initialData.bankCountry)
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
return false;
|
|
135
139
|
});
|
|
136
|
-
|
|
140
|
+
if (initialData.paymentMethod !== "PAYPAL")
|
|
141
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
137
142
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
138
143
|
? "toPayPalAccount"
|
|
139
144
|
: "toBankAccount");
|
|
@@ -1015,14 +1015,19 @@ function useBankingInfoForm(props) {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
1018
|
-
if (initialData.paymentMethod === "PAYPAL"
|
|
1019
|
-
paymentOption.defaultFinancePaymentMethodId === 7)
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1018
|
+
if (initialData.paymentMethod === "PAYPAL") {
|
|
1019
|
+
if (paymentOption.defaultFinancePaymentMethodId === 7) {
|
|
1020
|
+
return true;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
if (paymentOption.countryCode === initialData.bankCountry)
|
|
1025
|
+
return true;
|
|
1026
|
+
}
|
|
1027
|
+
return false;
|
|
1024
1028
|
});
|
|
1025
|
-
|
|
1029
|
+
if (initialData.paymentMethod !== "PAYPAL")
|
|
1030
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1026
1031
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
1027
1032
|
? "toPayPalAccount"
|
|
1028
1033
|
: "toBankAccount");
|