Skip to content

Commit

Permalink
Show subscription settings section either when subscription purchase …
Browse files Browse the repository at this point in the history
…is possible or user is authenticated (#2922)
  • Loading branch information
miasma13 authored Jun 7, 2024
1 parent 53af06a commit 9eb5b42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DuckDuckGo/SettingsSubscriptionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ struct SettingsSubscriptionView: View {

}
}.onReceive(viewModel.$state) { state in
if state.subscription.enabled && state.subscription.canPurchase {
isShowingPrivacyPro = true
}
isShowingPrivacyPro = state.subscription.enabled && (state.subscription.isSignedIn || state.subscription.canPurchase)
}
}
}

0 comments on commit 9eb5b42

Please sign in to comment.