[F] Fix heatmap displaying even when plays is 0

pull/23/head
Azalea 2024-03-06 17:04:51 -05:00
parent d5296763ad
commit 8342acbd49
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
const minDate = moment().subtract(TREND_DAYS, 'days').format("YYYY-MM-DD")
d = {user,
trend: trend.filter(it => it.date >= minDate),
trend: trend.filter(it => it.date >= minDate && it.plays != 0),
recent: user.recent.map(it => {return {...music[it.musicId], ...it}})
}
renderCal(calElement, trend.map(it => {return {date: it.date, value: it.plays}})).then(() => {