kleros / kleros-v2

Kleros version 2
https://v2.kleros.builders
MIT License
62 stars 44 forks source link

Voting tab: number of jurors who votes is incorrect when a juror is drawn several times #1095

Closed jaybuidl closed 1 year ago

jaybuidl commented 1 year ago

I have been drawn 2 times out 3 on this case but the frontend says that only 1 juror has voted.

The castVote() transaction shows that 2 votes have indeed been cast.

https://deploy-preview-1057--kleros-v2.netlify.app/#/cases/86/voting

image

It looks like this is returning the wrong value

https://github.com/kleros/kleros-v2/blob/a7ee03ea01acd4acb699f2143c68c6f5a856e8e0/web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx#L115

Seems the subgraph is returning the wrong result image

alcercu commented 1 year ago

temporarily solved by #1099