diff --git a/src/App.js b/src/App.js index 6660887..cd278d0 100755 --- a/src/App.js +++ b/src/App.js @@ -47,7 +47,6 @@ class BooksApp extends React.Component { const id = e.target.name const newShelf = e.target.value const books = this.state.books - books.forEach((book) => { if (book.id === id) { book.shelf = newShelf; diff --git a/src/Bookshelf.js b/src/Bookshelf.js index 28b274d..107bc7a 100644 --- a/src/Bookshelf.js +++ b/src/Bookshelf.js @@ -5,7 +5,6 @@ class Bookshelf extends Component { render() { const books = this.props.books const onSelect = this.props.onSelect - return (