try to fix

This commit is contained in:
taskylizard 2023-11-03 10:59:53 +05:30
parent c81932d383
commit f88d54baa4
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497

View File

@ -5,13 +5,14 @@ interface Feedback {
message: string;
feedbackType?: string;
contactEmail?: string;
anonymous: boolean
}
const loading = ref(false);
const error = ref<unknown>(null);
const success = ref(false);
const feedback = reactive<Feedback>({ message: "", contactEmail: "" });
const feedback = reactive<Feedback>({ message: "", anonymous: false,contactEmail: "" });
const feedbackOptions = [
{ label: "🐞 Bug", value: "bug" },
@ -37,6 +38,7 @@ async function handleSubmit(type?: string) {
const body: Feedback = {
message: feedback.message,
feedbackType: feedback.feedbackType,
anonymous: feedback.anonymous,
contactEmail: feedback.contactEmail,
};