Skip to content

Commit

Permalink
full feature has completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Deri-Kurniawan committed Oct 1, 2021
1 parent eab3084 commit 54726fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const init = async () => {
} else if (finished !== null) {
allBooks = books.filter((book) => Number(finished) === Number(book.finished));
} else if (name !== null) {
allBooks = books.filter((book) => name === book.name);
allBooks = books.filter((book) => book.name.toLowerCase().includes(name.toLowerCase()));
}

return h.response({
Expand Down

0 comments on commit 54726fa

Please sign in to comment.