From 8137b0b7a92d0b7774412d50e95908faffb89b3d Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Sat, 21 Apr 2018 15:09:58 -0400 Subject: [PATCH] fixed bug in SearchPage --- src/SearchPage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SearchPage.js b/src/SearchPage.js index d8484c6..307729a 100644 --- a/src/SearchPage.js +++ b/src/SearchPage.js @@ -13,11 +13,10 @@ class SearchPage extends Component { onSearch = (query) => { const books = this.props.books - // console.log(books) if (query.length > 3) { search(query).then((results) => { - for (result in results) { - for (book in books) { + for (var result in results) { + for (var book in books) { if (result === book) { result.shelf = book.shelf }