Fixing logical errors

pull/2/head
Michael Scoff 7 years ago
parent 28bfa22478
commit f705d8d981
  1. 2
      Trust/Payment/SendViewController.swift
  2. 2
      Trust/Wallet/CreateWalletViewController.swift
  3. 2
      Trust/Wallet/ImportWalletViewController.swift

@ -78,7 +78,7 @@ class SendViewController: FormViewController {
func send() {
let errors = form.validate()
guard !errors.isEmpty else { return }
guard errors.isEmpty else { return }
let addressString = (form.rowBy(tag: Values.address) as? TextFloatLabelRow)?.value ?? ""
let amountString = (form.rowBy(tag: Values.amount) as? TextFloatLabelRow)?.value ?? ""

@ -54,7 +54,7 @@ class CreateWalletViewController: FormViewController {
$0.title = $0.tag
}.onCellSelection { [unowned self] (_, row) in
let validatedError = row.section?.form?.validate()
guard let errors = validatedError, !errors.isEmpty else { return }
guard let errors = validatedError, errors.isEmpty else { return }
self.startImport()
}

@ -48,7 +48,7 @@ class ImportWalletViewController: FormViewController {
$0.title = $0.tag
}.onCellSelection { [unowned self] (_, row) in
let validatedError = row.section?.form?.validate()
guard let errors = validatedError, !errors.isEmpty else { return }
guard let errors = validatedError, errors.isEmpty else { return }
self.importWallet()
}
}

Loading…
Cancel
Save