Skip to content

Commit

Permalink
Got rid of catch eating up error
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu-1 committed Mar 20, 2024
1 parent 4b68bdc commit f97a46a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ function RecommendedCarousel() {

getHardcodedBooks().then((data) => {
setBooks(data);
}).catch(error => {
if (error instanceof TypeError) {
console.log("No books found")
}
});
}, []);
return (
Expand Down

0 comments on commit f97a46a

Please sign in to comment.