Update 'src/pages/CalendarPage.tsx'
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dorian Zedler 2022-09-17 09:36:05 +02:00
parent 19dc6044ce
commit 9e5c353353

View file

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