Skip to content

Commit

Permalink
feat: show total choice voting power in proposal results (#551)
Browse files Browse the repository at this point in the history
* feat: show total choice voting power in proposal results

* remove symbol

* use decimals prop
  • Loading branch information
ChaituVR authored Jul 29, 2024
1 parent e088ca6 commit fea53c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/ui/src/components/ProposalResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
quorumLabel,
quorumProgress
} from '@/helpers/quorum';
import { _n, _p } from '@/helpers/utils';
import { _n, _p, _vp } from '@/helpers/utils';
import { Proposal as ProposalType } from '@/types';
const DEFAULT_MAX_CHOICES = 6;
Expand Down Expand Up @@ -45,7 +45,8 @@ const results = computed(() => {
return {
choice: i + 1,
progress
progress,
score
};
})
.sort((a, b) => b.progress - a.progress);
Expand Down Expand Up @@ -146,6 +147,9 @@ const otherResultsSummary = computed(() => {
class="truncate grow"
v-text="proposal.choices[result.choice - 1]"
/>
<div>
{{ _vp(result.score / 10 ** decimals) }}
</div>
<div v-text="_p(result.progress / 100)" />
</div>
<button
Expand Down

0 comments on commit fea53c6

Please sign in to comment.