Skip to content

Commit 6aa4aea

Browse files
committed
Dismiss site picker without switching to the selected site.
1 parent b838761 commit 6aa4aea

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

WooCommerce/Classes/Authentication/Epilogue/StorePickerViewController.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private extension StorePickerViewController {
214214
navigationItem.leftBarButtonItem = UIBarButtonItem(title: dismissLiteral,
215215
style: .plain,
216216
target: self,
217-
action: #selector(cleanupAndDismiss))
217+
action: #selector(dismissStorePicker))
218218
}
219219

220220
func setupNavigationForListOfConnectedStores() {
@@ -365,12 +365,7 @@ private extension StorePickerViewController {
365365

366366
/// Dismiss this VC
367367
///
368-
@objc func cleanupAndDismiss() {
369-
if let siteID = currentlySelectedSite?.siteID {
370-
delegate?.didSelectStore(with: siteID, onCompletion: {
371-
})
372-
}
373-
368+
@objc func dismissStorePicker() {
374369
dismiss()
375370
}
376371

0 commit comments

Comments
 (0)