Rename to secondarySymptomDisabledPrompt

This commit is contained in:
bl00dymarie
2024-02-19 18:10:57 +01:00
parent 69c546f684
commit d66e5f36e5
+2 -2
View File
@@ -167,7 +167,7 @@ const Settings = () => {
saveUseCervixAsSecondarySymptom(useCervixAsSecondarySymptom) saveUseCervixAsSecondarySymptom(useCervixAsSecondarySymptom)
} }
const secSymptomDisabledPrompt = () => { const secondarySymptomDisabledPrompt = () => {
if (!isMucusTrackingCategoryEnabled == isCervixTrackingCategoryEnabled) { if (!isMucusTrackingCategoryEnabled == isCervixTrackingCategoryEnabled) {
Alert.alert( Alert.alert(
labels.secondarySymptom.disabled.title, labels.secondarySymptom.disabled.title,
@@ -269,7 +269,7 @@ const Settings = () => {
</Pressable> </Pressable>
{/* used to be switch for onCervixToggle */} {/* used to be switch for onCervixToggle */}
<Pressable onPress={secSymptomDisabledPrompt}> <Pressable onPress={secondarySymptomDisabledPrompt}>
<Segment title={labels.secondarySymptom.title}> <Segment title={labels.secondarySymptom.title}>
{!isTemperatureTrackingCategoryEnabled || {!isTemperatureTrackingCategoryEnabled ||
isSecondarySymptomDisabled ? ( isSecondarySymptomDisabled ? (