From b3768b50267907fb8a12a3af5fa74bcce64ac0a3 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Fri, 20 Apr 2018 18:49:05 -0400 Subject: [PATCH] Bug fix in SearchPage --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 8b0463a..0a74583 100755 --- a/src/App.js +++ b/src/App.js @@ -23,7 +23,7 @@ class BooksApp extends React.Component { getAll().then((books) => { this.setState({ books }) }) - } + }; onResultSelect = (e) => { @@ -41,8 +41,8 @@ class BooksApp extends React.Component { newBooks.forEach((book) => { update(book, book.shelf) }) - history.push('/') - } + history.push('/'); + }; onSelectChange = (e) => { const id = e.target.name @@ -88,6 +88,6 @@ class BooksApp extends React.Component { ) } -} +}; export default BooksApp