Skip to content

Commit 48156bd

Browse files
Use different method to dismiss web view to avoid tracking loginJetpackSetupScreenDismissed event while dismissing web view.
1 parent dd8a0d7 commit 48156bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

WooCommerce/Classes/Authentication/Jetpack Setup/Native Jetpack Setup/LoginJetpackSetupView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ final class LoginJetpackSetupHostingController: UIHostingController<LoginJetpack
5757
dismiss(animated: true)
5858
}
5959

60+
@objc
61+
private func dismissWebView() {
62+
dismiss(animated: true)
63+
}
64+
6065
private func presentJetpackConnectionWebView() {
6166
guard let connectionURL = viewModel.jetpackConnectionURL else {
6267
return
@@ -78,7 +83,7 @@ final class LoginJetpackSetupHostingController: UIHostingController<LoginJetpack
7883
webView.navigationItem.leftBarButtonItem = UIBarButtonItem(title: Localization.cancel,
7984
style: .plain,
8085
target: self,
81-
action: #selector(self.dismissView))
86+
action: #selector(self.dismissWebView))
8287
let navigationController = UINavigationController(rootViewController: webView)
8388
self.present(navigationController, animated: true)
8489
}

0 commit comments

Comments
 (0)