better
This commit is contained in:
parent
8e92f513fd
commit
3949804dca
|
@ -16,9 +16,16 @@ function ChapterFeedback({ chapter }: { chapter: string }) {
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return () => {
|
return () => {
|
||||||
// send face feedback if exists
|
fetch("https://account.lingdocs.com/feedback", {
|
||||||
}
|
method: "PUT",
|
||||||
|
credentials: "include",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({ feedback: "", rating }),
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
function handleSendFeedback() {
|
function handleSendFeedback() {
|
||||||
const toSend = {
|
const toSend = {
|
||||||
chapter,
|
chapter,
|
||||||
|
|
Loading…
Reference in New Issue