Browse Source

edit payoutPartner logic

pull/1/head
InKwon James Kim 5 years ago
parent
commit
437fb2b719
  1. 6
      GME Remit/Modules/RecipientModules/SetupRecipient/User Interface/View/ViewModel/SetupRecipientViewModel.swift

6
GME Remit/Modules/RecipientModules/SetupRecipient/User Interface/View/ViewModel/SetupRecipientViewModel.swift

@ -378,7 +378,11 @@ extension SetupRecipientViewModel: SetupRecipientViewModelInterface {
case .bank: case .bank:
guard let model = model as? SendMoneyBank else { return } guard let model = model as? SendMoneyBank else { return }
selectedBankLinker.onNext(model) selectedBankLinker.onNext(model)
payoutPartner = model.payoutPartner
if let code = model.payoutPartner {
payoutPartner = code
}
if model.branchRequired?.lowercased() == "true" { if model.branchRequired?.lowercased() == "true" {
selectedBranchLinker.onNext(nil) selectedBranchLinker.onNext(nil)
} }

Loading…
Cancel
Save