We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8fa39 commit 4a38706Copy full SHA for 4a38706
src/app/[locale]/case/[disputeId]/components/Votes.tsx
@@ -39,10 +39,10 @@ const Votes: React.FC<IVotes> = async ({ disputeId }) => {
39
40
const jurors = voteData.rounds[0].drawnJurors.reduce(
41
(acc: IJurorData, draw) => {
42
- const juror = draw.vote.juror.id;
+ const juror = draw.vote?.juror.id;
43
if (acc[juror]) {
44
acc[juror].weight = acc[juror].weight + 1;
45
- } else {
+ } else if (typeof juror !== "undefined") {
46
acc[juror] = {
47
shortAddress: shortenAddress(juror),
48
weight: 1,
0 commit comments