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 b0e3b4b commit 74d2dafCopy full SHA for 74d2daf
WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewModel.swift
@@ -279,7 +279,13 @@ private extension SettingsViewModel {
279
// App Settings
280
let appSettingsSection: Section = {
281
let rows: [Row]
282
- if featureFlagService.isFeatureFlagEnabled(.notificationSettings) {
+ let notificationAvailable: Bool = {
283
+ guard let site = stores.sessionManager.defaultSite else {
284
+ return false
285
+ }
286
+ return site.isJetpackThePluginInstalled && site.isJetpackConnected
287
+ }()
288
+ if notificationAvailable, featureFlagService.isFeatureFlagEnabled(.notificationSettings) {
289
rows = [.notifications, .privacy]
290
} else {
291
rows = [.privacy]
0 commit comments