Move temp off turns fertility off logic out of local storage

This commit is contained in:
bl00dymarie
2024-02-23 16:38:11 +01:00
parent 27bb25e6da
commit 5855ea0a34
2 changed files with 4 additions and 6 deletions
@@ -88,6 +88,10 @@ const Settings = () => {
const temperatureTrackingCategoryToggle = (value) => {
setTemperatureTrackingCategory(value)
saveTemperatureTrackingCategory(value)
if (!value) {
setFertilityTrackingEnabled(false)
saveFertilityTrackingEnabled(false)
}
}
const mucusTrackingCategoryToggle = (value) => {
manageSecondarySymptom(cervixTrackingCategoryObservable.value, value)