Fixed bug in onSearch in SearchPage component

This commit is contained in:
Ken Jannette
2018-04-21 16:45:00 -04:00
parent da25926cdd
commit c8019b7292

View File

@@ -17,7 +17,7 @@ class SearchPage extends Component {
search(query).then((results) => { search(query).then((results) => {
for (var result of results) { for (var result of results) {
for (var book of books) { for (var book of books) {
if (result === book) { if (result.title === book.title) {
result.shelf = book.shelf result.shelf = book.shelf
console.log(result) console.log(result)
} }