@snapshot-labs/snapshot.js 0.14.7 → 0.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2705,7 +2705,7 @@ class RankedChoiceVoting {
2705
2705
  return this.proposal.choices.map((choice, i) => this.strategies.map((strategy, sI) => {
2706
2706
  return finalRound
2707
2707
  .filter((res) => Number(res[0]) === i + 1)
2708
- .reduce((a, b) => a + b[1][1][sI] || 0, 0);
2708
+ .reduce((a, b) => a + (b[1][1][sI] || 0), 0);
2709
2709
  }));
2710
2710
  }
2711
2711
  getScoresTotal() {
@@ -2695,7 +2695,7 @@ class RankedChoiceVoting {
2695
2695
  return this.proposal.choices.map((choice, i) => this.strategies.map((strategy, sI) => {
2696
2696
  return finalRound
2697
2697
  .filter((res) => Number(res[0]) === i + 1)
2698
- .reduce((a, b) => a + b[1][1][sI] || 0, 0);
2698
+ .reduce((a, b) => a + (b[1][1][sI] || 0), 0);
2699
2699
  }));
2700
2700
  }
2701
2701
  getScoresTotal() {