Skip to content

Commit

Permalink
fix: arrival by day chart
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash committed Jan 20, 2025
1 parent 2b4f35a commit 18c7283
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export default function ArrivalByTimeChart({
const pointsPerOperator = arrayGroup(data, (item) => item.id).map((operatorData) => {
return allRange.map((time) => {
const current = operatorData.find(
(item) => time.includes(item.gtfs_route_date!) || time.includes(item.gtfs_route_hour!),
(item) =>
time.includes(item.gtfs_route_date!.split('T')[0]) ||
time.includes(item.gtfs_route_hour!),
)
return {
id: operatorData[0].id,
Expand Down

0 comments on commit 18c7283

Please sign in to comment.