Skip to content

Commit

Permalink
fix: 🐛 search crash
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed May 25, 2024
1 parent e536aee commit c4f89fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions democracy/desktop/src/components/molecules/ChartPair.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export default function ChartPair({ item, className, large }) {
partyVotes: item.voteResults.partyVotes.map((p: any) => ({
party: p.party,
main: p.main.toLowerCase(),
yes: p.deviants.yes ?? 0,
no: p.deviants.no ?? 0,
abstination: p.deviants.abstination ?? 0,
notVoted: p.deviants.notVoted ?? 0,
yes: p.deviants?.yes ?? 0,
no: p.deviants?.no ?? 0,
abstination: p.deviants?.abstination ?? 0,
notVoted: p.deviants?.notVoted ?? 0,
})),
}
: undefined;
Expand Down

0 comments on commit c4f89fc

Please sign in to comment.