fix: aff renew select length
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m51s

This commit is contained in:
Thibaut Valentin 2025-11-07 16:19:49 +01:00
parent 8a0e4423f2
commit d95c173fa8
2 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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)))
})