Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
fix: change reused variable (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
satello authored Aug 9, 2018
1 parent 084983a commit 84dce71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resources/Disputes.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ class Disputes {
// Wait for parallel requests to complete
;[ruling, canRule] = await Promise.all(rulingPromises)

let rulings = []
let jurorRuling = []
// if can't rule that means they already did or they missed it
if (!canRule) {
ruling = await this._ArbitratorInstance.getVoteForJuror(
jurorRuling = await this._ArbitratorInstance.getVoteForJuror(
dispute.disputeId,
appeal,
account
Expand All @@ -406,7 +406,7 @@ class Disputes {
createdAt: appealCreatedAt,
fee: dispute.arbitrationFeePerJuror * draws.length,
draws,
ruling,
jurorRuling,
canRule
}
appealRulings[appeal] = {
Expand Down

0 comments on commit 84dce71

Please sign in to comment.