fix ÖBB 🐛

This commit is contained in:
Jannis R 2018-12-06 11:38:46 +01:00
parent bcbc366497
commit ae2007c9e2
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -53,7 +53,7 @@ const createParseMovement = (profile, opt, data) => {
res.nextStops = res.nextStops.filter(s => {
if (s.station) {
s = s.station
if (s.type === 'stop' || s.type === 'station')
if (s.station.type === 'stop' || s.station.type === 'station') return true
}
return s.type === 'stop' || s.type === 'station'
})