Skip to content

Commit 60dd056

Browse files
committed
new dep
1 parent e0ab636 commit 60dd056

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/pages/feedbackForm.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ export default function feedbackForm() {
3030
setIsOpen(true);
3131

3232
console.log(formData.Name, formData.Email, formData.Feedback);
33-
3433
console.log(baseurl);
35-
const urlEncodedFormData = new URLSearchParams(formData).toString();
3634

3735
const response = await fetch(baseurl, {
3836
method: "POST",
39-
body: urlEncodedFormData,
37+
body: JSON.stringify(formData),
4038
headers: {
41-
"Content-Type": "application/x-www-form-urlencoded",
39+
"Content-Type": "application/json",
4240
},
4341
});
4442

0 commit comments

Comments
 (0)