fix: week filter prop reference

This commit is contained in:
Cory Dransfeldt 2023-07-21 13:14:55 -07:00
parent 585080cdf0
commit 474e7cc401
No known key found for this signature in database

View file

@ -121,7 +121,7 @@ const deriveCharts = (tracks) => {
const currentDateTime = new Date().getTime()
const lastWeek = new Date(currentDate.setDate(currentDate.getDate() - 7))
const lastWeekDateTime = lastWeek.getTime()
const trackDateTime = new Date(track.time).getTime()
const trackDateTime = new Date(track.playTime).getTime()
return trackDateTime <= currentDateTime && trackDateTime > lastWeekDateTime
})