fix(Feedback): do not stringify body

h
This commit is contained in:
taskylizard 2023-11-03 11:40:10 +05:30
parent 9429be0fab
commit eb40a4f049
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497

View File

@ -45,7 +45,7 @@ async function handleSubmit(type?: string) {
try { try {
const response = await fetch("https://fmhy.vercel.app/api/feedback", { const response = await fetch("https://fmhy.vercel.app/api/feedback", {
method: "POST", method: "POST",
body: JSON.stringify(body), body: JSON.parse(body),
}); });
const data = await response.json(); const data = await response.json();