Skip to content

Commit

Permalink
Add Caribbean cuisine as search form option
Browse files Browse the repository at this point in the history
Issue #7
  • Loading branch information
CodeWritingCow committed Dec 21, 2017
1 parent 81986a6 commit 239bf52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ app.get('/dba/:id', (req, res) => {
// If query string is added to url, console.log(business.dba) works
// But console.log(business.dba.toLowerCase()) throws an error
// TypeError: Cannot read property 'toLowerCase' of undefined
// Turns out at least one 'business' has type 'undefined' for some reason
// Turns out at least one 'business' has 'undefined' for some reason
request(`${url}?boro=queens&zipcode=11358`, (error, response, body) => {
var searchResults = JSON.parse(body).filter((business) => {
console.log(`${business.dba} is type ${typeof business.dba}`);
Expand Down
1 change: 1 addition & 0 deletions views/partials/searchForm.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<option value="Seafood">Seafood</option>
<option value="Latin (Cuban, Dominican, Puerto Rican, South & Central American)">Latin (Cuban, Dominican, Puerto Rican, South & Central American)</option>
<option value="Armenian">Armenian</option>
<option value="Caribbean">Caribbean</option>
<option value="Chicken">Chicken</option>
<option value="Hamburgers">Hamburgers</option>
<option value="Ice Cream, Gelato, Yogurt, Ices">Ice Cream, Gelato, Yogurt, Ices</option>
Expand Down

0 comments on commit 239bf52

Please sign in to comment.