Pagelle: esclusi assenti e infortunati della partita

Nell'elenco da votare non compaiono i convocati che hanno risposto
«assente» o «infortunato» a quella partita; per le altre partite
restano votabili come prima. Solo filtro di interfaccia.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
davideandClaude Sonnet 5.5 committed 2026-11-06 23:41:20 +01:00
1 parent 30fb8e23b6
commit e6cfb1bf00
3 files changed
+10 -1

No files matched your search

+7 -1
View File
@@ -244,7 +244,13 @@ function PartitaDetail() {
{match ? (
<Section titolo="Pagelle di fine partita">
<Pagelle matchId={match.id} convocati={convocati} chiuse={evento.pagelleChiuse} />
<Pagelle
matchId={match.id}
convocati={convocati.filter(
(g) => risposte[g.id] !== "assente" && risposte[g.id] !== "infortunato",
)}
chiuse={evento.pagelleChiuse}
/>
</Section>
) : null}