diff --git a/src/components/ShelfChanger.js b/src/components/ShelfChanger.js index 43021b02f5..2bd1709f63 100644 --- a/src/components/ShelfChanger.js +++ b/src/components/ShelfChanger.js @@ -18,12 +18,12 @@ const ShelfChanger = (props) => { const shelf = shelves.find((shelf) => shelf.books.find((b) => b.id === book.id) ); - return (shelf && shelf.id) || noShelf.id; + return shelf || noShelf; }; return (
- {shelves.map((shelf) => { return (