Skip to content

Commit f2a9a04

Browse files
committed
Add updated filter to DART train type - takes both 'DART' and 'DART10'
1 parent d8159b3 commit f2a9a04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dartDown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function dartDown() {
7373
return estimate;
7474
})
7575
.filter((estimate) => parseInt(estimate.Duein) >= MINUTE_CUTOFF) // Keep trains that are due in less than the cutoff
76-
.filter((estimate) => estimate.Traintype === 'DART10') // Keep only DART trains
76+
.filter((estimate) => estimate.Traintype === 'DART10' || estimate.Traintype === 'DART') // Keep only DART trains
7777
.sort((a, b) => parseInt(a.Duein) - parseInt(b.Duein));
7878

7979
// Hide the error state

0 commit comments

Comments
 (0)