Fix typo in func name

pull/2928/head
Hwee-Boon Yar 3 years ago
parent d149f54f3b
commit 17cb03eab8
  1. 4
      AlphaWallet/Transfer/Coordinators/SignMessageCoordinator.swift
  2. 6
      AlphaWallet/WalletConnect/Coordinator/WalletConnectToSessionCoordinator.swift

@ -77,7 +77,7 @@ class SignMessageCoordinator: Coordinator {
}
}
func dissmissAnimated(completion: @escaping () -> Void) {
func dismissAnimated(completion: @escaping () -> Void) {
confirmationViewController.dismissViewAnimated {
//Needs a strong self reference otherwise `self` might have been removed by its owner by the time animation completes and the `completion` block not called
self.navigationController.dismiss(animated: true, completion: completion)
@ -102,7 +102,7 @@ class SignMessageCoordinator: Coordinator {
result = keystore.signEip712TypedData(data, for: account)
}
dissmissAnimated(completion: {
dismissAnimated(completion: {
guard let delegate = self.delegate else { return }
switch result {

@ -61,7 +61,7 @@ class WalletConnectToSessionCoordinator: Coordinator {
viewController.reloadView()
}
private func dissmiss(animated: Bool = true, completion: @escaping () -> Void) {
private func dismiss(animated: Bool = true, completion: @escaping () -> Void) {
viewController.dismissViewAnimated {
self.navigationController.dismiss(animated: animated, completion: completion)
}
@ -95,7 +95,7 @@ extension WalletConnectToSessionCoordinator: WalletConnectToSessionViewControlle
func controller(_ controller: WalletConnectToSessionViewController, continueButtonTapped sender: UIButton) {
if config.enabledServers.contains(serverToConnect) {
analyticsCoordinator.log(action: Analytics.Action.walletConnectConnect, properties: [Analytics.Properties.chain.rawValue: serverToConnect.chainID])
dissmiss(animated: true, completion: {
dismiss(animated: true, completion: {
guard let delegate = self.delegate else { return }
delegate.coordinator(self, didCompleteWithConnection: .connect(self.serverToConnect))
@ -110,7 +110,7 @@ extension WalletConnectToSessionCoordinator: WalletConnectToSessionViewControlle
func didClose(in controller: WalletConnectToSessionViewController) {
analyticsCoordinator.log(action: Analytics.Action.walletConnectCancel)
dissmiss(animated: true, completion: {
dismiss(animated: true, completion: {
guard let delegate = self.delegate else { return }
delegate.coordinator(self, didCompleteWithConnection: .cancel)

Loading…
Cancel
Save