Correction affichage personne élue

This commit is contained in:
Emmy D'Anello 2024-06-21 00:24:07 +02:00
parent 0fef97dd82
commit 8b45bc81ad
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ function LigneCandidat({candidat, voix_t1, voix_t2, donnees_t1, donnees_t2, nuan
const nuance = nuances.filter(nuance => nuance.code === candidat.nuance)[0]
const bloc = blocs.filter(bloc => bloc.nom === candidat.bloc)[0]
const gagnant = voix_t2 === Math.max(...Object.values(donnees_t2.voix))
const gagnant = (voix_t2 > 0 && voix_t2 === Math.max(...Object.values(donnees_t2.voix)))
|| (voix_t1 === Math.max(...Object.values(donnees_t1.voix))
&& voix_t1 / donnees_t1.exprimes >= 0.5 && voix_t1 / donnees_t1.inscrits >= 0.25)