Skip to content

Commit

Permalink
Merge branch 'main' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Jun 7, 2024
2 parents 1a608f5 + d6c92c7 commit 5532d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/liveTrains/shortPlatforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function isShortPlatform(crs: string, platformNumber: string | null, trai
const count = parseInt(out.split('.')[1])

if (count && !isNaN(count) && train.length !== null && train.length > 0) {
if (count <= train.length) {
if (count >= train.length) {
out = null
}
}
Expand Down

0 comments on commit 5532d64

Please sign in to comment.