Skip to content

Commit

Permalink
fix: oops, broke the "has been announced" check
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Nov 17, 2023
1 parent 51ddc3c commit 3ffb95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/announcement-data/systems/stations/KeTechPhil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4052,7 +4052,7 @@ function LiveTrainAnnouncements({ nextTrainHandler, system }: LiveTrainAnnouncem
console.log(`[Live Trains] ${services.length} services found`)

const firstUnannounced = services.find(s => {
if (nextTrainAnnounced[s.serviceIdGuid]) {
if (nextTrainAnnounced.current[s.serviceIdGuid]) {
console.log(`[Live Trains] Skipping ${s.serviceIdGuid} (${s.std} to ${s.destination[0].locationName}) as it was announced recently`)
return false
}
Expand Down

0 comments on commit 3ffb95b

Please sign in to comment.