mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
parseJourneyLeg: parse isRchbl correctly 🐛
This commit is contained in:
parent
2cb6a0c32b
commit
0dceb414af
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
|
|||
res.departureDelay = dep.delay
|
||||
if (dep.prognosedWhen) res.prognosedDeparture = dep.prognosedWhen
|
||||
|
||||
if (pt.jny) {
|
||||
if (pt.jny && ('isRchbl' in pt.jny)) {
|
||||
res.reachable = !!pt.jny.isRchbl
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue