homerchen19 / nba-go

🏀 💻 The finest NBA CLI.
https://www.npmjs.com/package/nba-go
MIT License
3.71k stars 222 forks source link

Error if no games on selected date #75

Open garyking opened 6 years ago

garyking commented 6 years ago

For instance, today there are no games. So I run ng g -t. I can't select any games since there are none. It still asks me Which game do you want to watch? so I just hit Enter, and then I get TypeError: Cannot read property 'value' of undefined.

homerchen19 commented 6 years ago

Thanks for report! I have confirmed this is a bug. Should print No game available on this date. in this situation.