From d95c173fa8b1522ebdc6d5824546a754b5ba4dd0 Mon Sep 17 00:00:00 2001 From: Thibaut Valentin Date: Fri, 7 Nov 2025 16:19:49 +0100 Subject: [PATCH] fix: aff renew select length --- src/main/webapp/src/App.jsx | 2 -- src/main/webapp/src/pages/club/club/AffiliationCard.jsx | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/src/App.jsx b/src/main/webapp/src/App.jsx index 7cc63dc..ef74deb 100644 --- a/src/main/webapp/src/App.jsx +++ b/src/main/webapp/src/App.jsx @@ -130,8 +130,6 @@ function ReAuthMsg() { /^\/complete\/auth.*$/s ] - console.log(location.pathname, notAuthPaths.some(r => r.test(location.pathname))) - if (is_authenticated || notAuthPaths.some(r => r.test(location.pathname))) return <> return <> diff --git a/src/main/webapp/src/pages/club/club/AffiliationCard.jsx b/src/main/webapp/src/pages/club/club/AffiliationCard.jsx index f6de7e3..33439d6 100644 --- a/src/main/webapp/src/pages/club/club/AffiliationCard.jsx +++ b/src/main/webapp/src/pages/club/club/AffiliationCard.jsx @@ -139,10 +139,10 @@ function ModalContent2({clubData, data}) { } } - if (list.length !== 3) { - toast.error("Il faut sélectionner 3 membres pour renouveler l'affiliation") - return + while (list.length < 3) { + list.push(-1) } + apiAxios.get(`/club/renew/${clubData.id}?m1=${list[0]}&m2=${list[1]}&m3=${list[2]}`).then(data => { navigate('/affiliation#d' + encodeURI(JSON.stringify(data.data))) })