Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
viliket committed Sep 14, 2023
1 parent 2e6cfdc commit 6f23410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/StationTimeTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function StationTimeTableRow({
: train.trainType.name + train.trainNumber;
const deptOrDestStation =
timeTableType === TimeTableRowType.Departure
? getTrainDestinationStation(train, stationCode)
? getTrainDestinationStation(train)
: getTrainDepartureStation(train);
const deptOrDestStationName = deptOrDestStation
? getTrainStationName(deptOrDestStation)
Expand Down

0 comments on commit 6f23410

Please sign in to comment.