Fix: estimated corresponding ETH/$ amount not refreshed when changing ETH amount to send

pull/99/head
Hwee-Boon Yar 7 years ago
parent 1d9d4427c5
commit 5f6f0f7895
  1. 8
      Trust/Transfer/ViewControllers/SendViewController.swift

@ -311,7 +311,13 @@ class SendViewController: FormViewController {
//We use this section update to prevent update of the all section including cells.
UIView.setAnimationsEnabled(false)
tableView.beginUpdates()
if let containerView = tableView.footerView(forSection: 1) {
let footerSectionIndex: Int
if viewModel.isStormBird {
footerSectionIndex = 1
} else {
footerSectionIndex = 0
}
if let containerView = tableView.footerView(forSection: footerSectionIndex) {
containerView.textLabel!.text = valueOfPairRepresantetion()
containerView.sizeToFit()
}

Loading…
Cancel
Save