From 17cb03eab8ac0fea333e3d58b9d6667f53353863 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Thu, 1 Jul 2021 13:36:09 +0800 Subject: [PATCH] Fix typo in func name --- .../Transfer/Coordinators/SignMessageCoordinator.swift | 4 ++-- .../Coordinator/WalletConnectToSessionCoordinator.swift | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AlphaWallet/Transfer/Coordinators/SignMessageCoordinator.swift b/AlphaWallet/Transfer/Coordinators/SignMessageCoordinator.swift index a194051ea..1fb7842db 100644 --- a/AlphaWallet/Transfer/Coordinators/SignMessageCoordinator.swift +++ b/AlphaWallet/Transfer/Coordinators/SignMessageCoordinator.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 { diff --git a/AlphaWallet/WalletConnect/Coordinator/WalletConnectToSessionCoordinator.swift b/AlphaWallet/WalletConnect/Coordinator/WalletConnectToSessionCoordinator.swift index b66038a89..4ffcdfcb4 100644 --- a/AlphaWallet/WalletConnect/Coordinator/WalletConnectToSessionCoordinator.swift +++ b/AlphaWallet/WalletConnect/Coordinator/WalletConnectToSessionCoordinator.swift @@ -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)