Skip to content

Commit

Permalink
Update default value for the toggle to get value from WPAppAnalytics
Browse files Browse the repository at this point in the history
  • Loading branch information
alpavanoglu committed Jul 5, 2023
1 parent cc3f84a commit 93cd7a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import WordPressUI

final class CompliancePopoverViewModel: ObservableObject {
@Published
var isAnalyticsEnabled: Bool = true
var isAnalyticsEnabled: Bool = !WPAppAnalytics.userHasOptedOut()
var coordinator: CompliancePopoverCoordinator?

private let defaults: UserDefaults
Expand Down

0 comments on commit 93cd7a1

Please sign in to comment.