mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 02:23:07 +00:00
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:
parent
94f0bd51f8
commit
909778eaea
1 changed files with 1 additions and 1 deletions
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue