Browse Source

[Updated] Set optional for reciever input text field

v0.17
Dibya Malla 2 years ago
parent
commit
60ad33d854
  1. 4
      GME Remit/Modules/Home/User Interface/View/Custom/HomeExchangeRateView.swift
  2. 2
      GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframe.swift

4
GME Remit/Modules/Home/User Interface/View/Custom/HomeExchangeRateView.swift

@ -289,10 +289,10 @@ class HomeExchangeRateView: UIView {
@objc func calculateExchangeRate() {
let model = ExchangeRateRequestModel(
senderAmount: (sendMoneyView.text ?? "").stringRemovingComma(),
senderAmount: (sendMoneyView.text ?? sendMoneyView.updatedText ?? "").stringRemovingComma(),
senderCurrency: "JPY",
senderCountryID: "142",
recipientAmount: (recivedMoneyView.text ?? "").stringRemovingComma(),
recipientAmount: (recivedMoneyView.text ?? recivedMoneyView.updatedText ?? "").stringRemovingComma(),
recipientCurrency: selectedExchangeRateModel?.currency ?? "",
recipientCountryID: selectedExchangeRateModel?.countryId ?? "",
recipientCountry: selectedExchangeRateModel?.country ?? "",

2
GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframe.swift

@ -30,7 +30,7 @@ extension HomeWireframe: HomeWireframeInput {
exchangeRateService: exchangeRateService)
let presenter = HomePresenter()
let viewController = HomeViewControllerNew()
//let viewController = viewControllerFromStoryboard(of: HomeViewController.self)
// let viewController = viewControllerFromStoryboard(of: HomeViewController.self)
viewController.setupTabItem()
viewController.presenter = presenter

Loading…
Cancel
Save