Update 'src/pages/CalendarPage.tsx'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dorian Zedler 2022-09-17 09:29:43 +02:00
parent 0febe0af9b
commit 19dc6044ce

View file

@ -52,7 +52,7 @@ export default function CalendarPage() {
.includes(filter?.toLocaleLowerCase() ?? ''); .includes(filter?.toLocaleLowerCase() ?? '');
const date = new Date(c.date).getTime(); const date = new Date(c.date).getTime();
const currentDate = new Date().getTime(); const currentDate = new Date().getTime();
return queryMatches && currentDate - date > 24 * 60 * 60 * 1000; return queryMatches && currentDate - date > -24 * 60 * 60 * 1000;
}); });
}; };