fix: week filter prop reference
This commit is contained in:
parent
585080cdf0
commit
474e7cc401
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue