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) === selectedRelease ||
|
||||||
release.types.includes(selectedRelease);
|
release.types.includes(selectedRelease);
|
||||||
const dateMatch =
|
const dateMatch =
|
||||||
(!startDate || new Date(release.date) >= startDate) &&
|
(!startDate || new Date(release.date) >= new Date(startDate)) &&
|
||||||
(!endDate || new Date(release.date) <= endDate);
|
(!endDate || new Date(release.date) <= new Date(endDate));
|
||||||
return artistMatch && titleMatch && releaseTypeMatch && dateMatch;
|
return artistMatch && titleMatch && releaseTypeMatch && dateMatch;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue