From 474e7cc4019a8885e0327cbb9680fca33d32a9aa Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 21 Jul 2023 13:14:55 -0700 Subject: [PATCH] fix: week filter prop reference --- src/_data/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_data/music.js b/src/_data/music.js index d7eaded0..2e1162fe 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -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 })