Skip to content

Commit

Permalink
return IF isEnabled to not post a location
Browse files Browse the repository at this point in the history
  • Loading branch information
mltbnz committed Jun 6, 2023
1 parent e965549 commit edb2f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CriticalMapsKit/Sources/AppFeature/AppFeatureCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit edb2f0c

Please sign in to comment.