We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c6d4d4 + d0ec4ae commit e8176d3Copy full SHA for e8176d3
src/components/panels/events-and-exhibits-panel.js
@@ -92,7 +92,6 @@ export default function EventsAndExhibitsPanel () {
92
// useEffects are only client side, so we can use now here.
93
94
// Get upcoming events.
95
- // This is repetative... but :shrug:
96
const upcomingEvents = events.filter((event) => {
97
const start = new Date(event.field_event_date_s_[0].value);
98
const type = event.relationships.field_event_type.name;
@@ -101,7 +100,7 @@ export default function EventsAndExhibitsPanel () {
101
100
if (EXHIBIT_TYPES.includes(type)) {
102
return false;
103
}
104
- return now < start; // all after today.
+ return now < new Date(start.toDateString()); // all after today.
105
});
106
107
setUpcomingEvents(upcomingEvents);
0 commit comments