Fix leverage overview row typecheck for comparable ticket votes.

Narrow ticketVotes before pushing leverage rows so pre-push tsc passes.
This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-19 17:34:56 -03:00
parent 94f0bd51f8
commit 909778eaea

View file

@ -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 })
}
}