Update 'src/pages/CalendarPage.tsx'
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
19dc6044ce
commit
9e5c353353
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue