fix: disabling the secondary symptom toggle when not both categories are enabled, didn't work before after new save
This commit is contained in:
@@ -147,8 +147,10 @@ const Settings = () => {
|
|||||||
: labels.periodPrediction.off
|
: labels.periodPrediction.off
|
||||||
|
|
||||||
const onCervixToggle = (value) => {
|
const onCervixToggle = (value) => {
|
||||||
setShouldUseCervix(value)
|
if (isMucusTrackingCategoryEnabled && isCervixTrackingCategoryEnabled) {
|
||||||
saveUseCervix(value)
|
setShouldUseCervix(value)
|
||||||
|
saveUseCervix(value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user