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 0f561de commit b916e21Copy full SHA for b916e21
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@snapshot-labs/snapshot.js",
3
- "version": "0.14.7",
+ "version": "0.14.8",
4
"repository": "snapshot-labs/snapshot.js",
5
"license": "MIT",
6
"main": "dist/snapshot.cjs.js",
src/voting/rankedChoice.ts
@@ -143,7 +143,7 @@ export default class RankedChoiceVoting {
143
this.strategies.map((strategy, sI) => {
144
return finalRound
145
.filter((res) => Number(res[0]) === i + 1)
146
- .reduce((a, b) => a + b[1][1][sI] || 0, 0);
+ .reduce((a, b) => a + (b[1][1][sI] || 0), 0);
147
})
148
);
149
}
0 commit comments