fix: aff renew select length
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m51s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m51s
This commit is contained in:
parent
8a0e4423f2
commit
d95c173fa8
@ -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 <>
|
||||
|
||||
@ -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)))
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user