show the error to the user when updating an event participant

This commit is contained in:
Massedil
2025-06-18 17:42:32 +02:00
parent 72ca4c3e26
commit d4c28a113a

View File

@@ -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[]