Skip to content

Commit a4885de

Browse files
committed
Notify Main tab to update the orders badge instead of requesting it internally
1 parent b3d1f75 commit a4885de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrderListViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ extension OrderListViewController {
302302
@objc func pullToRefresh(sender: UIRefreshControl) {
303303
ServiceLocator.analytics.track(.ordersListPulledToRefresh)
304304
delegate?.orderListViewControllerWillSynchronizeOrders(self)
305+
NotificationCenter.default.post(name: .ordersBadgeReloadRequired, object: nil)
305306
syncingCoordinator.resynchronize(reason: SyncReason.pullToRefresh.rawValue) {
306307
sender.endRefreshing()
307308
}

0 commit comments

Comments
 (0)