From 82803bbb835a0c439da42d6aec8cd922713fd8e5 Mon Sep 17 00:00:00 2001 From: wunderfisch Date: Tue, 13 Feb 2024 11:52:33 +0100 Subject: [PATCH] fix: disabling the secondary symptom toggle when not both categories are enabled, didn't work before after new save --- components/settings/customization/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/settings/customization/index.js b/components/settings/customization/index.js index b3c6086..db88296 100644 --- a/components/settings/customization/index.js +++ b/components/settings/customization/index.js @@ -147,8 +147,10 @@ const Settings = () => { : labels.periodPrediction.off const onCervixToggle = (value) => { - setShouldUseCervix(value) - saveUseCervix(value) + if (isMucusTrackingCategoryEnabled && isCervixTrackingCategoryEnabled) { + setShouldUseCervix(value) + saveUseCervix(value) + } } useEffect(() => {