diff --git a/mood/static/mood/dashboard.js b/mood/static/mood/dashboard.js index 0973ad7..9f54c36 100644 --- a/mood/static/mood/dashboard.js +++ b/mood/static/mood/dashboard.js @@ -24,6 +24,7 @@ fetch("/mood/statistics/heatmap/values/") y: d => { 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 0;