On affiche pas les résultats du second tour s'il n'y en a pas
This commit is contained in:
@ -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>Inscrit⋅es</TableCell>
|
||||
|
Reference in New Issue
Block a user