diff --git a/wire-ios/Wire-iOS/Sources/Authentication/Coordinator/AuthenticationCoordinator.swift b/wire-ios/Wire-iOS/Sources/Authentication/Coordinator/AuthenticationCoordinator.swift index 12bda3b3e2..17ed6e54ae 100644 --- a/wire-ios/Wire-iOS/Sources/Authentication/Coordinator/AuthenticationCoordinator.swift +++ b/wire-ios/Wire-iOS/Sources/Authentication/Coordinator/AuthenticationCoordinator.swift @@ -506,10 +506,10 @@ extension AuthenticationCoordinator { /// Opens the URL in the selected browser private func openURL(_ url: URL) { url.open() - if let alertModel = self.pendingAlert { - self.presenter?.isLoadingViewVisible = false - self.presentAlert(for: alertModel) - self.pendingAlert = nil + if let alertModel = pendingAlert { + presenter?.isLoadingViewVisible = false + presentAlert(for: alertModel) + pendingAlert = nil } }