Team-4-PennBootcamp / Project-1

https://team-4-pennbootcamp.github.io/Project-1/
MIT License
0 stars 2 forks source link

Search Validation #8

Open kevnat opened 6 years ago

kevnat commented 6 years ago

If no response returned from newsAPI, then prompt the user "Input did not return good results"

kevnat commented 6 years ago

Within the on click function, we have something like the following:

if (results < 1){ 
//style or alert the user somehow
 } else { 
//populate results
}
ftorning commented 6 years ago

@kevnat @syoeung I think this has been addressed (not sure)?

ftorning commented 6 years ago

Currently, you can submit a search with a null query string - I think we should validate for this, but otherwise, I don't think we will need anything more complicated