Move temp off turns fertility off logic out of local storage
This commit is contained in:
@@ -107,12 +107,6 @@ export async function saveTemperatureTrackingCategory(bool) {
|
||||
temperatureTrackingCategoryObservable.set(bool)
|
||||
|
||||
if (!temperatureTrackingCategoryObservable.value) {
|
||||
// if temperature tracking is turned off, the fertility tracking gets disabled
|
||||
const fertilityTrackingResult = await AsyncStorage.getItem('fertilityTracking')
|
||||
if (fertilityTrackingResult) {
|
||||
saveFertilityTrackingEnabled(false)
|
||||
}
|
||||
|
||||
// if temperature tracking is turned off, the temperature reminder gets disabled
|
||||
const tempReminderResult = await AsyncStorage.getItem('tempReminder')
|
||||
if (tempReminderResult && JSON.parse(tempReminderResult).enabled) {
|
||||
|
||||
Reference in New Issue
Block a user