We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7eb0b commit 6302b6dCopy full SHA for 6302b6d
1 file changed
src/js/08-feedback.js
@@ -45,15 +45,13 @@
45
46
feedbackFormData.append('feedback-option', feedbackFormOptionButtonSelected.value)
47
48
- console.log(feedbackFormData)
49
-
50
fetch('/', {
51
method: 'POST',
52
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
53
body: new URLSearchParams(feedbackFormData).toString(),
54
})
55
- .then(() => console.log('Form successfully submitted'))
56
- .catch((error) => alert(error))
+ .then((response) => console.log('Form successfully submitted. DEBUG: ', response))
+ .catch((error) => console.error('ERROR: ', error))
57
58
feedbackFormSubmitButton.innerText = 'Submitted'
59
feedbackFormSubmitButton.disabled = true
0 commit comments