On affiche pas les résultats du second tour s'il n'y en a pas

This commit is contained in:
2024-06-28 13:39:38 +02:00
parent d78ac420d8
commit 0b0508958c
2 changed files with 16 additions and 8 deletions

View File

@ -118,7 +118,7 @@ export function CompositionHemicycle({titre, blocs, nuances, siegesParBloc, sieg
*/
export function TableauParticipation({donnees_t1, donnees_t2 = null}) {
const headerRow = useMemo(() => {
if (donnees_t2) {
if (donnees_t2 && donnees_t2.inscrits) {
return <TableRow>
<TableCell></TableCell>
<TableCell>Nombre tour 1</TableCell>
@ -140,7 +140,7 @@ export function TableauParticipation({donnees_t1, donnees_t2 = null}) {
}, [donnees_t2])
const bodyRows = useMemo(() => {
if (donnees_t2) {
if (donnees_t2 && donnees_t2.inscrits) {
return <>
<TableRow key={"Inscrit⋅es"}>
<TableCell>Inscrites</TableCell>