diff --git a/src/contexts/GlobalData.js b/src/contexts/GlobalData.js index 4b6db0e83..5c775c22e 100644 --- a/src/contexts/GlobalData.js +++ b/src/contexts/GlobalData.js @@ -289,7 +289,7 @@ const getChartData = async (client, oldestDateToFetch) => { } } - if (data) { + if (data.length) { let dayIndexSet = new Set() let dayIndexArray = [] const oneDay = 24 * 60 * 60