diff --git a/mood/static/mood/dashboard.js b/mood/static/mood/dashboard.js index 9704452..f2d4cf6 100644 --- a/mood/static/mood/dashboard.js +++ b/mood/static/mood/dashboard.js @@ -9,7 +9,7 @@ fetch("/mood/statistics/heatmap/values/") const end = new Date(); var domain = Object.keys(moodOptions).map((key) => Number(key)); - const range = ["#ffffd4"].concat(domain.map((key) => moodOptions[key]["color"]))); + const range = ["#ffffd4"].concat(domain.map((key) => moodOptions[key]["color"])); domain = [-Infinity].concat(domain).concat([Infinity]); fetch("/mood/statistics/heatmap/?start=" + start.toISOString().split("T")[0] + "&end=" + end.toISOString().split("T")[0])