From fe887349124abae1f19b4b8fa1f60802d55ccd71 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Thu, 19 Apr 2018 10:32:06 -0400 Subject: [PATCH] No message --- src/App.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 0981e3a..50f56cb 100755 --- a/src/App.js +++ b/src/App.js @@ -26,9 +26,8 @@ class BooksApp extends React.Component { const id = e.target.name const shelf = e.target.value // console.log(id, shelf) - const changeShelf = this.state.books.filter((id, book) => book.id === id) - console.log("changeShelf", changeShelf) - + const changeShelf = this.state.books.filter((book, id) => book.id === id) + console.log("changeShelf: ", changeShelf) } render() {