chore: questionInput wordt enkel leeggemaakt als vraag verstuurd is

This commit is contained in:
Timo De Meyst 2025-04-24 16:18:53 +02:00
parent 9bc0c59249
commit c1eeee4e39

View file

@ -182,11 +182,10 @@ import type { GroupDTO } from "@dwengo-1/common/interfaces/group";
if (questionInput.value != "") {
createQuestionMutation.mutate(questionData, {
onSuccess: () => {
questionInput.value = "question:..."; // Clear the input field after submission
questionInput.value = ""; // Clear the input field after submission
},
onError: (e) => {
console.error(e)
questionInput.value = ""; // Clear the input field after submission
},
})
} else {