debug: Removes console.log statement in dashboard.js

Eliminates a debug console.log used for logging key, average,
and moodOptions values, improving code cleanliness and performance.
This commit is contained in:
Kumi 2024-11-28 16:57:18 +01:00
parent 5b56eef878
commit 95b4a15f15
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -29,7 +29,6 @@ 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 Number(key);
}
return 0;