Skip to content

Commit

Permalink
Add cancelled states to realms and legacy proposals (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay authored Feb 4, 2024
1 parent 3f24ce3 commit 45eca37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ export const Proposals = ({
href={proposal.href}
name={proposal.name}
endTs={proposal.endTs}
cancelled={false} // assume no cancelled realms votes
results={proposal.outcomes.map((o, index) => ({
index,
percent: (o.votes / total) * 100,
Expand All @@ -487,6 +488,7 @@ export const Proposals = ({
href={`/legacy/${proposal.id}`}
name={proposal.name}
endTs={proposal.deadlineTs}
cancelled={false} // assume no cancelled legacy votes
results={proposal.outcomes.map((o, index) => ({
index,
percent: (o.hntVoted / total) * 100,
Expand Down

0 comments on commit 45eca37

Please sign in to comment.