dev #58

Merged
Thibaut merged 6 commits from dev into master 2025-11-07 15:31:18 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit d95c173fa8 - Show all commits

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