Skip to content

Commit 39a8272

Browse files
authored
Merge pull request #5359 from woocommerce/issue/3834-dismiss-site-picker
Dismiss site picker without switching to a different selected site
2 parents c8fc5f6 + 96c547e commit 39a8272

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
8.0
44
-----
5-
5+
- [*] Fix: in Settings > Switch Store, tapping "Dismiss" after selecting a different store does not switch stores anymore. [https://github.com/woocommerce/woocommerce-ios/pull/5359]
66

77
7.9
88
-----

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)