@saasquatch/mint-components 1.9.1-0 → 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.
@@ -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
- return true;
1025
- if (paymentOption.countryCode !== initialData.bankCountry)
1026
- return false;
1027
- return true;
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
- updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
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
- return true;
132
- if (paymentOption.countryCode !== initialData.bankCountry)
133
- return false;
134
- return true;
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
- updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
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
- return true;
1021
- if (paymentOption.countryCode !== initialData.bankCountry)
1022
- return false;
1023
- return true;
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
- updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
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");