istvanfedak / mmm-miami-transit

Magic Mirror module that displays the Miami Metrorail times for different stations
MIT License
0 stars 0 forks source link

Fix [object] being displayed when there are no trains #1

Closed istvanfedak closed 4 years ago

istvanfedak commented 4 years ago

When there are less then 3 train times returned by the API (for either direction), the module displays the empty trains as [object]. Add logic to check if the train times are empty and prevent empty times from being displayed.