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

Commit

Permalink
check currentVoteRankedChoice in current vote ranked choice response
Browse files Browse the repository at this point in the history
  • Loading branch information
jparklev committed May 6, 2020
1 parent a934e8d commit 2754abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dai-plugin-governance/src/GovQueryApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export default class QueryApi extends PublicService {
}
}`;
const response = await this.getQueryResponse(this.serverUrl, query);
if (!response.currentVote.nodes[0]) return null;
return response.currentVote.nodes[0].optionIdRaw;
if (!response.currentVoteRankedChoice.nodes[0]) return null;
return response.currentVoteRankedChoice.nodes[0].optionIdRaw;
}

async getBlockNumber(unixTime) {
Expand Down

0 comments on commit 2754abb

Please sign in to comment.