fix: disabling the secondary symptom toggle when not both categories are enabled, didn't work before after new save

This commit is contained in:
wunderfisch
2024-02-13 11:52:33 +01:00
parent 8a8b3217fa
commit 82803bbb83
@@ -147,9 +147,11 @@ const Settings = () => {
: labels.periodPrediction.off : labels.periodPrediction.off
const onCervixToggle = (value) => { const onCervixToggle = (value) => {
if (isMucusTrackingCategoryEnabled && isCervixTrackingCategoryEnabled) {
setShouldUseCervix(value) setShouldUseCervix(value)
saveUseCervix(value) saveUseCervix(value)
} }
}
useEffect(() => { useEffect(() => {
if ( if (