fix: aff renew select length

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

View File

@ -136,8 +136,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)))
})