Merge branch '466-bug-temp-hint-for-too-high-or-low-value-shows-at-the-start' into 'rebased-redesign'

No warning msg if there is no temp data

See merge request bloodyhealth/drip!322
This commit is contained in:
bl00dymarie
2020-12-29 11:12:29 +00:00
+1 -1
View File
@@ -33,7 +33,7 @@ export const isPreviousTemperature = (temperature) => {
}
export const isTemperatureOutOfRange = (temperature) => {
if (temperature === '') return null
if (!temperature) return null
const value = Number(temperature)
const range = { min: TEMP_MIN, max: TEMP_MAX }