diff --git a/src/components/ChapterFeedback.tsx b/src/components/ChapterFeedback.tsx index 3817943..1191000 100644 --- a/src/components/ChapterFeedback.tsx +++ b/src/components/ChapterFeedback.tsx @@ -19,6 +19,7 @@ function ChapterFeedback({ chapter }: { chapter: string }) { } useEffect(() => { return () => { + if (rating === undefined) return; fetch("https://account.lingdocs.com/feedback", { method: "PUT", credentials: "include", @@ -100,10 +101,10 @@ function ChapterFeedback({ chapter }: { chapter: string }) {