Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: percentages undefined * refactor: adds type for percentages * fix: adds correct return type to getPercentages function
- Loading branch information
1 parent
4044b0d
commit e9f6d72
Showing
5 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/shared/lib/contexts/governance/interfaces/proposal-answer-percentages.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface IProposalAnswerPercentages { | ||
[answerIndex: number]: string | ||
} |
9 changes: 5 additions & 4 deletions
9
packages/shared/lib/contexts/governance/utils/getPercentagesFromAnswerStatuses.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters