We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5e1c1 commit 995ff1eCopy full SHA for 995ff1e
WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewController.swift
@@ -251,9 +251,9 @@ private extension SettingsViewController {
251
ServiceLocator.analytics.track(.settingsLogoutConfirmation, withProperties: ["result": "negative"])
252
}
253
254
- alertController.addDefaultActionWithTitle(Localization.LogoutAlert.logoutButtonTitle) { _ in
+ alertController.addDefaultActionWithTitle(Localization.LogoutAlert.logoutButtonTitle) { [weak self] _ in
255
ServiceLocator.analytics.track(.settingsLogoutConfirmation, withProperties: ["result": "positive"])
256
- self.logOutUser()
+ self?.logOutUser()
257
258
259
present(alertController, animated: true)
0 commit comments