Fix: the popup that should be shown after sending ether didn't appear

pull/2187/head
Hwee-Boon Yar 4 years ago
parent 396e875251
commit a6b0419292
  1. 6
      AlphaWallet/InCoordinator.swift

@ -604,7 +604,7 @@ class InCoordinator: NSObject, Coordinator {
})
alertController.addAction(copyAction)
alertController.addAction(UIAlertAction(title: R.string.localizable.oK(), style: .default, handler: nil))
navigationController.present(alertController, animated: true, completion: nil)
presentationViewController.present(alertController, animated: true, completion: nil)
}
private func fetchXMLAssetDefinitions() {
@ -865,7 +865,6 @@ extension InCoordinator: PaymentCoordinatorDelegate {
switch result {
case .sentTransaction(let transaction):
handlePendingTransaction(transaction: transaction)
showTransactionSent(transaction: transaction)
removeCoordinator(coordinator)
guard let currentTab = tabBarController?.selectedViewController else { return }
@ -873,6 +872,9 @@ extension InCoordinator: PaymentCoordinatorDelegate {
// Once transaction sent, show transactions screen.
showTab(.transactionsOrActivity)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.8) {
self.showTransactionSent(transaction: transaction)
}
case .signedTransaction: break
}
}

Loading…
Cancel
Save