From 93cd7a19f51f658780124c5ebcad5726bde7a18c Mon Sep 17 00:00:00 2001 From: alpavanoglu Date: Wed, 5 Jul 2023 12:08:01 +0200 Subject: [PATCH] Update default value for the toggle to get value from WPAppAnalytics --- .../EEUUSCompliance/CompliancePopoverViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/EEUUSCompliance/CompliancePopoverViewModel.swift b/WordPress/Classes/ViewRelated/EEUUSCompliance/CompliancePopoverViewModel.swift index 71b25514e677..3f7839a7d573 100644 --- a/WordPress/Classes/ViewRelated/EEUUSCompliance/CompliancePopoverViewModel.swift +++ b/WordPress/Classes/ViewRelated/EEUUSCompliance/CompliancePopoverViewModel.swift @@ -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