Skip to content

Commit

Permalink
Merge pull request #253 from davwheat/main
Browse files Browse the repository at this point in the history
Deploy to live
  • Loading branch information
davwheat authored Jul 11, 2024
2 parents 7f470a8 + a341bbc commit ff8f791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AmeyLiveTrainAnnouncements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ function getCancelledCallingPoints(
): CallingAtPoint[] {
const callingPoints = train.subsequentLocations.filter(s => {
if (!s.crs) return false
// Force the calling point if the train divides here
if (s.associations?.filter(a => a.category === AssociationCategory.Divide).length) return true
if (!s.isCancelled || s.isOperational || s.isPass) return false
if (!stations.includes(s.crs)) return false
// Ignore pick-up only
Expand Down Expand Up @@ -235,6 +233,8 @@ function getCancelledCallingPoints(
if (!s.crs) return false
if (!s.isCancelled || s.isOperational || s.isPass) return false
if (!stations.includes(s.crs)) return false
// Ignore pick-up only
if (s.activities?.includes('U')) return false
return true
})
.map(l => ({ crsCode: l.crs!! })),
Expand Down

0 comments on commit ff8f791

Please sign in to comment.