diff --git a/components/charts/WaitTimeTodayChart.tsx b/components/charts/WaitTimeTodayChart.tsx index 720493a..daa932c 100644 --- a/components/charts/WaitTimeTodayChart.tsx +++ b/components/charts/WaitTimeTodayChart.tsx @@ -36,6 +36,12 @@ export default function WaitTimeTodayChart({ samples, hasFastLane }: Props) { const outages = computeOutages(samples); const outageByTime = outageLookup(samples, outages); + // Show the Fast Lane line if either the ride metadata flags it as a Fast + // Lane ride OR we have any actual Fast Lane data in today's samples. The + // metadata flag can lag (or read false even when SF is reporting waits), + // so the data-driven check rescues those rides. + const showFastLane = hasFastLane || samples.some((s) => s.fastLaneMinutes !== null); + // X-axis time is rendered in the viewer's local timezone (Intl with no // tz arg) so an Eastern-time user sees ET regardless of which park. // Each point also carries its outage (if any) so the custom tooltip can @@ -57,7 +63,8 @@ export default function WaitTimeTodayChart({ samples, hasFastLane }: Props) { return (
- + {/* top margin leaves room for outage labels rendered with position="top" */} + ))} - } /> + } /> - {hasFastLane && ( + {showFastLane && (