mirror of
https://github.com/JonasunderscoreJones/K-Comebacks.git
synced 2025-10-23 09:59:20 +02:00
fixed date range
This commit is contained in:
parent
4e94fa0566
commit
610937910c
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@
|
|||
: release.types) === selectedRelease ||
|
||||
release.types.includes(selectedRelease);
|
||||
const dateMatch =
|
||||
(!startDate || new Date(release.date) >= startDate) &&
|
||||
(!endDate || new Date(release.date) <= endDate);
|
||||
(!startDate || new Date(release.date) >= new Date(startDate)) &&
|
||||
(!endDate || new Date(release.date) <= new Date(endDate));
|
||||
return artistMatch && titleMatch && releaseTypeMatch && dateMatch;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue