feat: reload answers als er nieuwe gepost worden

This commit is contained in:
Timo De Meyst 2025-04-24 17:48:58 +02:00
parent 760e86788f
commit cfe7342434

View file

@ -46,7 +46,10 @@ import authService from "@/services/auth/auth-service";
};
if (answer.value != "") {
createAnswerMutation.mutate(answerData, {
onSuccess: () => {answer.value = "";}
onSuccess: () => {
answer.value = "";
answersQuery.refetch();
}
});
} else {
alert("Please type an answer before submitting") //TODO: i18n