Skip to content
Snippets Groups Projects
Commit 4e6653c5 authored by emelko's avatar emelko
Browse files

Check for falsy value

parent 8f6ae97e
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ export const isPreviousTemperature = (temperature) => { ...@@ -33,7 +33,7 @@ export const isPreviousTemperature = (temperature) => {
} }
export const isTemperatureOutOfRange = (temperature) => { export const isTemperatureOutOfRange = (temperature) => {
if (temperature === null) return null if (!temperature) return null
const value = Number(temperature) const value = Number(temperature)
const range = { min: TEMP_MIN, max: TEMP_MAX } const range = { min: TEMP_MIN, max: TEMP_MAX }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment