diff --git a/democracy/desktop/src/components/molecules/ChartPair.tsx b/democracy/desktop/src/components/molecules/ChartPair.tsx index a4fbddb1..d3130866 100644 --- a/democracy/desktop/src/components/molecules/ChartPair.tsx +++ b/democracy/desktop/src/components/molecules/ChartPair.tsx @@ -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;