Skip to content

Commit 5c909ec

Browse files
authored
Merge pull request #5824 from woocommerce/fix/trunk-hubMenu-ios14
Fix crash when tapping on Menu tab in iOS 14
2 parents 6d75b53 + 38e88a3 commit 5c909ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Hub Menu/HubMenuViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ final class HubMenuViewModel: ObservableObject {
4747
init(siteID: Int64, navigationController: UINavigationController? = nil, featureFlagService: FeatureFlagService = ServiceLocator.featureFlagService) {
4848
self.siteID = siteID
4949
self.navigationController = navigationController
50-
menuElements = [.woocommerceAdmin, .viewStore, .reviews]
50+
menuElements = [.woocommerceAdmin, .viewStore]
5151
if featureFlagService.isFeatureFlagEnabled(.couponManagement) {
5252
menuElements.append(.coupons)
5353
}
5454
menuElements.append(.reviews)
55-
observeSiteForUIUpdates()
55+
observeSiteForUIUpdates()
5656
}
5757

5858
/// Present the `StorePickerViewController` using the `StorePickerCoordinator`, passing the navigation controller from the entry point.

0 commit comments

Comments
 (0)