From bfb00fd05013773859dbb3965cef4f6592cf1a0b Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 22 Oct 2025 20:56:02 +0200 Subject: [PATCH] improve: Inform the user when a participation is already confirmed instead of showing a white screen --- .../Participation/ConfirmParticipation.vue | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/components/Participation/ConfirmParticipation.vue b/src/components/Participation/ConfirmParticipation.vue index a8d1d3c5b..95323ebac 100644 --- a/src/components/Participation/ConfirmParticipation.vue +++ b/src/components/Participation/ConfirmParticipation.vue @@ -4,7 +4,7 @@ {{ t("Your participation request is being validated") }}
-
+
-
- - {{ - t( - "We couldn't save your participation inside this browser. Not to worry, you have successfully confirmed your participation, we just couldn't save it's status in this browser because of a technical issue." - ) - }} - -
-
+
{{ t("Go to the event page") }} @@ -110,6 +99,9 @@ onDone(async ({ data }) => { onError((err) => { console.error(err); + // Sadly, the backend return an error 500 if the participant is already confirmed + // So we at least inform the user by an alert popup. Could be better. + alert(err.message); failed.value = true; loading.value = false; });