fixes
This commit is contained in:
parent
fa47ec2e45
commit
6f10ec6e4f
@ -45,10 +45,10 @@ 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",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
@ -100,7 +100,7 @@ async function handleSubmit(type?: string) {
|
|||||||
</div>
|
</div>
|
||||||
<textarea v-model="feedback.message" autofocus class="input" />
|
<textarea v-model="feedback.message" autofocus class="input" />
|
||||||
<button class="btn btn-primary" :disabled="!feedback.message" @click="handleSubmit()">
|
<button class="btn btn-primary" :disabled="!feedback.message" @click="handleSubmit()">
|
||||||
Send us your feedback
|
Submit
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="step">
|
<div v-else class="step">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user