Skip to content

Commit 74d2daf

Browse files
committed
Update logic for showing notification settings
1 parent b0e3b4b commit 74d2daf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewModel.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,13 @@ private extension SettingsViewModel {
279279
// App Settings
280280
let appSettingsSection: Section = {
281281
let rows: [Row]
282-
if featureFlagService.isFeatureFlagEnabled(.notificationSettings) {
282+
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) {
283289
rows = [.notifications, .privacy]
284290
} else {
285291
rows = [.privacy]

0 commit comments

Comments
 (0)