Skip to content

Commit

Permalink
fix(ideal): bank name not being populated (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Akash Kamble <[email protected]>
  • Loading branch information
vsrivatsa-edinburgh and akash-c-k authored Mar 13, 2024
1 parent 806f904 commit d264f32
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Utilities/DynamicFieldsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,12 @@ let useRequiredFieldsBody = (
| PhoneNumber => phone.value
| Currency(_) => currency
| Country => country
| Bank => selectedBank
| Bank =>
(
Bank.getBanks(paymentMethodType)
->Js.Array2.find(item => item.displayName == selectedBank)
->Belt.Option.getWithDefault(Bank.defaultBank)
).hyperSwitch
| AddressCountry(_) => {
let countryCode =
Country.getCountry(paymentMethodType)
Expand Down Expand Up @@ -521,6 +526,7 @@ let useRequiredFieldsBody = (
cardNumber,
cardExpiry,
cvcNumber,
selectedBank,
])
}

Expand Down

0 comments on commit d264f32

Please sign in to comment.