Skip to content

Commit c095b46

Browse files
committed
fix incorrect argument of multiple schedules
1 parent b03ca3d commit c095b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/views/transportation/bus/bus-line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ type Props = {
7373
line: BusLineType,
7474
now: moment,
7575
openMap: () => any,
76-
};
76+
}
7777

7878
export class BusLine extends React.Component<void, Props, void> {
7979
shouldComponentUpdate(nextProps: Props) {
@@ -88,7 +88,7 @@ export class BusLine extends React.Component<void, Props, void> {
8888
)
8989
}
9090

91-
generateScheduleInfo = (schedules: Array<BusScheduleType>, now: moment) => {
91+
generateScheduleInfo = (schedule: BusScheduleType, now: moment) => {
9292
const parseTimes = timeset => timeset.map(parseTime(now))
9393
const scheduledMoments: Array<FancyBusTimeListType> = schedule.times.map(
9494
parseTimes,

0 commit comments

Comments
 (0)