feedback
This commit is contained in:
parent
0da29f4abb
commit
7495bf896e
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue