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

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

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

Loading…
Cancel
Save