diff --git a/mood/static/mood/dashboard.js b/mood/static/mood/dashboard.js index 9f54c36..9491e16 100644 --- a/mood/static/mood/dashboard.js +++ b/mood/static/mood/dashboard.js @@ -25,7 +25,7 @@ fetch("/mood/statistics/heatmap/values/") if (d.average) { const key = Object.keys(moodOptions).reduce((a, b) => Math.abs(a - d.average) < Math.abs(b - d.average) ? a : b); console.log(key, d.average, moodOptions[key]); - return key; + return Number(key); } return 0; },