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
+4 -2
View File
@@ -147,8 +147,10 @@ const Settings = () => {
: labels.periodPrediction.off
const onCervixToggle = (value) => {
setShouldUseCervix(value)
saveUseCervix(value)
if (isMucusTrackingCategoryEnabled && isCervixTrackingCategoryEnabled) {
setShouldUseCervix(value)
saveUseCervix(value)
}
}
useEffect(() => {