brackt/app/components/sport-season
Chris Parsons b8d51e9798 Fix same-day events incorrectly showing Upcoming instead of Results Pending
String date comparison (eventDate < today) is strictly less-than, so events
on the current day always showed Upcoming regardless of time. When eventStartsAt
is available, use timestamp comparison (new Date(eventStartsAt) < new Date())
for accurate past/future determination.

Fixed in three locations: admin events list (getStatusBadge call site),
admin event detail isPast check, and EventSchedule upcoming badge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 12:24:26 -07:00
..
__tests__ Display upcoming matches (#141) 2026-03-12 10:12:38 -07:00
EventSchedule.tsx Fix same-day events incorrectly showing Upcoming instead of Results Pending 2026-03-15 12:24:26 -07:00
UpcomingCalendarPanel.tsx Display upcoming matches (#141) 2026-03-12 10:12:38 -07:00