Add check for if tempReminder is null
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ export async function saveTemperatureTrackingCategory(bool) {
|
||||
|
||||
// if temperature tracking is turned off, the temperature reminder gets disabled
|
||||
const tempReminderResult = await AsyncStorage.getItem('tempReminder')
|
||||
if (JSON.parse(tempReminderResult).enabled) {
|
||||
if (tempReminderResult && JSON.parse(tempReminderResult).enabled) {
|
||||
tempReminderObservable.set(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user