From c8019b7292cffd062414af887361050660cc7526 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Sat, 21 Apr 2018 16:45:00 -0400 Subject: [PATCH] Fixed bug in onSearch in SearchPage component --- src/SearchPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SearchPage.js b/src/SearchPage.js index 44feb80..0eae432 100644 --- a/src/SearchPage.js +++ b/src/SearchPage.js @@ -17,7 +17,7 @@ class SearchPage extends Component { search(query).then((results) => { for (var result of results) { for (var book of books) { - if (result === book) { + if (result.title === book.title) { result.shelf = book.shelf console.log(result) }