From 909778eaea49848a207005834e4dd47c5f949ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Sun, 19 Jul 2026 17:34:56 -0300 Subject: [PATCH] Fix leverage overview row typecheck for comparable ticket votes. Narrow ticketVotes before pushing leverage rows so pre-push tsc passes. --- src/utilities/nucleusElectoralBaseline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/nucleusElectoralBaseline.ts b/src/utilities/nucleusElectoralBaseline.ts index 052777af..0b175986 100644 --- a/src/utilities/nucleusElectoralBaseline.ts +++ b/src/utilities/nucleusElectoralBaseline.ts @@ -906,7 +906,7 @@ export const loadNucleusListElectionOverview = async ( presidentVotes, governorVotes, }) - if (isComparableTicketLeverage(leverage.status)) { + if (leverage.status === 'comparable' && leverage.ticketVotes !== null) { leverageRows.push({ estimate, ticketVotes: leverage.ticketVotes }) } }