Update 'src/pages/CalendarPage.tsx'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0febe0af9b
commit
19dc6044ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue