This commit is contained in:
adueck 2024-03-02 23:22:17 -05:00
parent 0da29f4abb
commit 7495bf896e
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ function ChapterFeedback({ chapter }: { chapter: string }) {
useEffect(() => {
setFeedbackStatus("unsent");
setFeedback("");
setRating(undefined);
}, [chapter]);
function handleRatingClick(v: number) {
setRating((o) => (o === v ? undefined : v));