diff --git a/app/page.tsx b/app/page.tsx index 7be40d6..a3cf134 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -45,6 +45,11 @@ export default async function HomePage({ searchParams }: PageProps) { 0 ); + // Only show parks that have at least one open day this week + const visibleParks = PARKS.filter((park) => + weekDates.some((date) => data[park.id]?.[date]?.isOpen) + ); + return (
{/* Header */} @@ -65,7 +70,7 @@ export default async function HomePage({ searchParams }: PageProps) { Six Flags Calendar - {PARKS.length} parks + {visibleParks.length} of {PARKS.length} parks open
@@ -79,7 +84,7 @@ export default async function HomePage({ searchParams }: PageProps) { {scrapedCount === 0 ? ( ) : ( - + )}