Open ParkMyCar opened 2 years ago
I think the fix is to update this line to something like:
return formattedTime - (walkingTime || 0)
Although I haven't tested it
@ParkMyCar care to submit a PR?
@ParkMyCar; did your suggestion resolve your issue?
@ParkMyCar; did your suggestion resolve your issue?
It did! Sorry I never got around to submitting a PR
Do you have time to do so now? 🙏
Describe the bug If you don't specify a
walkingTime
with each station, then you don't get back any train times, specifically theupTown
anddownTown
lists are empty, because thetime
field for each trip isNaN
To Reproduce Steps to reproduce the behavior:
walkingTime
Expected behavior Expect train times to show up
Actual behavior No train times show up