Skip to content

Commit

Permalink
Merge pull request #38 from neuefische/Fix/Filter-by-Rating
Browse files Browse the repository at this point in the history
fixed reset in rating dropdown
  • Loading branch information
marcelherr authored Aug 22, 2024
2 parents 018e7eb + 5d494ce commit c7c0683
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function RatingFilter({setRatingFilter, setSortedBooks}: RatingFi
function handleRatingValue(event: ChangeEvent<HTMLSelectElement>) {
const selectedBookRating = Number(event.target.value);
setRatingFilter(selectedBookRating)
event.target.value === "" && handleReset();
}

function handleReset() {
Expand Down

0 comments on commit c7c0683

Please sign in to comment.