User enters a bad number
Closed this issue · 1 comments
peterjmartinson commented
Currently, there are 70 quotes. If user enters 80 the app crashes. Validate user entered number against actual possibilities. Need to count DB documents, as in getQuote.atRandom
peterjmartinson commented
Solved at line 23 in getQuote.js
- Quote.count(...