feedback
This commit is contained in:
parent
0da29f4abb
commit
7495bf896e
|
@ -19,6 +19,7 @@ function ChapterFeedback({ chapter }: { chapter: string }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setFeedbackStatus("unsent");
|
setFeedbackStatus("unsent");
|
||||||
setFeedback("");
|
setFeedback("");
|
||||||
|
setRating(undefined);
|
||||||
}, [chapter]);
|
}, [chapter]);
|
||||||
function handleRatingClick(v: number) {
|
function handleRatingClick(v: number) {
|
||||||
setRating((o) => (o === v ? undefined : v));
|
setRating((o) => (o === v ? undefined : v));
|
||||||
|
|
Loading…
Reference in New Issue