oops
This commit is contained in:
parent
084e8616a5
commit
f7f06a7ebc
|
@ -19,7 +19,7 @@ function ChapterFeedback({ chapter }: { chapter: string }) {
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
if (rating === undefined) return;
|
if (rating === undefined || feedbackStatus === "sent") return;
|
||||||
fetch("https://account.lingdocs.com/feedback", {
|
fetch("https://account.lingdocs.com/feedback", {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
|
|
Loading…
Reference in New Issue