Fix: tapping the Send button for ether and token card when on a watch-account doesn't show error message correctly

pull/1030/head
Hwee-Boon Yar 6 years ago
parent 4906c37519
commit 2c76cdee89
  1. 6
      AlphaWallet/InCoordinator.swift

@ -361,7 +361,11 @@ class InCoordinator: Coordinator {
coordinator.start()
addCoordinator(coordinator)
case (_, _):
navigationController.displayError(error: InCoordinatorError.onlyWatchAccount)
if let topVC = navigationController.presentedViewController {
topVC.displayError(error: InCoordinatorError.onlyWatchAccount)
} else {
navigationController.displayError(error: InCoordinatorError.onlyWatchAccount)
}
}
}

Loading…
Cancel
Save