From edb2f0ce8a41d55339cff826cbf0d2c43eb098c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Bu=CC=88nz?= Date: Tue, 6 Jun 2023 14:55:39 +0200 Subject: [PATCH] return IF isEnabled to not post a location --- CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift b/CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift index 99436013..c194c0eb 100644 --- a/CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift +++ b/CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift @@ -279,7 +279,7 @@ public struct AppFeature: ReducerProtocol { return .none case .postLocation: - guard state.settingsState.userSettings.enableObservationMode else { + if state.settingsState.userSettings.isObservationModeEnabled { return .none }