Remove isSecondarySymptomDisabled;

because maybe we don't need it anymore with fertilityTracking taking its job
This commit is contained in:
bl00dymarie
2024-02-23 16:50:30 +01:00
parent 1c73509473
commit 405e27bdbe
@@ -74,9 +74,6 @@ const Settings = () => {
noteTrackingCategoryObservable.value noteTrackingCategoryObservable.value
) )
const [isSecondarySymptomDisabled, setIsSecondarySymptomDisabled] =
useState(false)
const [isFertilityTrackingEnabled, setFertilityTrackingEnabled] = useState( const [isFertilityTrackingEnabled, setFertilityTrackingEnabled] = useState(
fertilityTrackingObservable.value fertilityTrackingObservable.value
) )
@@ -164,15 +161,11 @@ const Settings = () => {
if (!cervix && mucus) { if (!cervix && mucus) {
setUseCervixAsSecondarySymptom(0) setUseCervixAsSecondarySymptom(0)
saveUseCervixAsSecondarySymptom(0) saveUseCervixAsSecondarySymptom(0)
setIsSecondarySymptomDisabled(false)
} else if (cervix && mucus) { } else if (cervix && mucus) {
setIsSecondarySymptomDisabled(false)
} else if (cervix && !mucus) { } else if (cervix && !mucus) {
setUseCervixAsSecondarySymptom(1) setUseCervixAsSecondarySymptom(1)
saveUseCervixAsSecondarySymptom(1) saveUseCervixAsSecondarySymptom(1)
setIsSecondarySymptomDisabled(false)
} else if (!cervix && !mucus) { } else if (!cervix && !mucus) {
setIsSecondarySymptomDisabled(true)
setFertilityTrackingEnabled(false) setFertilityTrackingEnabled(false)
saveFertilityTrackingEnabled(false) saveFertilityTrackingEnabled(false)
} }