summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/View controllers/Alert/AlertViewController.swift3
1 files changed, 1 insertions, 2 deletions
diff --git a/ios/MullvadVPN/View controllers/Alert/AlertViewController.swift b/ios/MullvadVPN/View controllers/Alert/AlertViewController.swift
index a4d35237c9..b83286e1ee 100644
--- a/ios/MullvadVPN/View controllers/Alert/AlertViewController.swift
+++ b/ios/MullvadVPN/View controllers/Alert/AlertViewController.swift
@@ -309,11 +309,10 @@ class AlertViewController: UIViewController {
}
@objc private func didTapButton(_ button: AppButton) {
+ onDismiss?()
if let handler = handlers.removeValue(forKey: button) {
handler()
}
-
handlers.removeAll()
- onDismiss?()
}
}