diff --git a/app/engine/utils/StreamFilter.js b/app/engine/utils/StreamFilter.js index 961e52411c..716f348d7f 100644 --- a/app/engine/utils/StreamFilter.js +++ b/app/engine/utils/StreamFilter.js @@ -15,7 +15,7 @@ export function createStreamFilter (maxLength, defaultValue) { let cleanDatapoint = defaultValue function push (dataPoint) { - if (datapoint !== undefined && !isNaN(datapoint)) { + if (dataPoint !== undefined && !isNaN(dataPoint)) { lastRawDatapoint = dataPoint dataPoints.push(dataPoint) cleanDatapoint = dataPoints.median()