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
|
/^\/complete\/auth.*$/s
|
||||||
]
|
]
|
||||||
|
|
||||||
console.log(location.pathname, notAuthPaths.some(r => r.test(location.pathname)))
|
|
||||||
|
|
||||||
if (is_authenticated || notAuthPaths.some(r => r.test(location.pathname)))
|
if (is_authenticated || notAuthPaths.some(r => r.test(location.pathname)))
|
||||||
return <></>
|
return <></>
|
||||||
return <>
|
return <>
|
||||||
|
|||||||
@ -139,10 +139,10 @@ function ModalContent2({clubData, data}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list.length !== 3) {
|
while (list.length < 3) {
|
||||||
toast.error("Il faut sélectionner 3 membres pour renouveler l'affiliation")
|
list.push(-1)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apiAxios.get(`/club/renew/${clubData.id}?m1=${list[0]}&m2=${list[1]}&m3=${list[2]}`).then(data => {
|
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)))
|
navigate('/affiliation#d' + encodeURI(JSON.stringify(data.data)))
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user