summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMojgan <Mojgan.jelodar@codic.se>2023-06-09 12:00:29 +0200
committerMojgan <Mojgan.jelodar@codic.se>2023-06-09 12:01:59 +0200
commit2efc52baba8698511cd8e4292251e120f2c4d49b (patch)
treed684a52cf1a7f1a2601df54fd1b2d526a8e96769
parent7f71dfdb050019ecfdd9272bb71b53bb0dac362c (diff)
downloadmullvadvpn-2efc52baba8698511cd8e4292251e120f2c4d49b.tar.xz
mullvadvpn-2efc52baba8698511cd8e4292251e120f2c4d49b.zip
Fix bug when user presses logged out button
-rw-r--r--ios/MullvadVPN/View controllers/Account/AccountViewController.swift8
1 files changed, 2 insertions, 6 deletions
diff --git a/ios/MullvadVPN/View controllers/Account/AccountViewController.swift b/ios/MullvadVPN/View controllers/Account/AccountViewController.swift
index 2e1e73ea82..a733483099 100644
--- a/ios/MullvadVPN/View controllers/Account/AccountViewController.swift
+++ b/ios/MullvadVPN/View controllers/Account/AccountViewController.swift
@@ -100,7 +100,7 @@ class AccountViewController: UIViewController {
action: #selector(doPurchase),
for: .touchUpInside
)
- contentView.logoutButton.addTarget(self, action: #selector(logOut), for: .touchUpInside)
+ contentView.logoutButton.addTarget(self, action: #selector(logout), for: .touchUpInside)
interactor.didReceiveDeviceState = { [weak self] deviceState in
self?.updateView(from: deviceState)
@@ -122,10 +122,6 @@ class AccountViewController: UIViewController {
// MARK: - Private
- @objc private func logOut() {
- delegate?.accountViewControllerDidLogout(self)
- }
-
@objc private func handleDismiss() {
delegate?.accountViewControllerDidFinish(self)
}
@@ -282,7 +278,7 @@ class AccountViewController: UIViewController {
// MARK: - Actions
- @objc private func doLogout() {
+ @objc private func logout() {
let alertController = CustomAlertViewController(
icon: .spinner
)