parseJourneyLeg: parse isRchbl correctly 🐛

This commit is contained in:
Jannis R 2020-03-18 21:42:29 +01:00
parent 2cb6a0c32b
commit 0dceb414af
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -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
}