From d4c28a113aee51fcd37ec6136490d9df75cdac8f Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 18 Jun 2025 17:42:32 +0200 Subject: [PATCH] show the error to the user when updating an event participant --- src/views/Event/ParticipantsView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/Event/ParticipantsView.vue b/src/views/Event/ParticipantsView.vue index fe6dbba99..91a593eaa 100644 --- a/src/views/Event/ParticipantsView.vue +++ b/src/views/Event/ParticipantsView.vue @@ -348,7 +348,10 @@ const event = computed(() => participantsResult.value?.event); const { mutate: updateParticipant, onError: onUpdateParticipantError } = useMutation(UPDATE_PARTICIPANT); -onUpdateParticipantError((e) => console.error(e)); +onUpdateParticipantError((e) => { + console.error(e); + alert(e.message); +}); const acceptParticipants = async ( participants: IParticipant[]