Skip to content

Commit

Permalink
fix display vote weight to include both locked and unlocked stcelo (#261
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aaronmgdr authored Aug 27, 2024
1 parent db1edc7 commit 48df149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/features/governance/components/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export enum ProposalStage {
}

export const Details = ({ proposal }: Props) => {
const { stCeloBalance, loadBalances, isConnected, address } = useAccountContext();
const { loadBalances, isConnected, address } = useAccountContext();
const {
stakedCeloThatCanVoteBalance,
voteProposal,
voteProposalStatus,
getProposalVote,
Expand Down Expand Up @@ -131,8 +132,8 @@ export const Details = ({ proposal }: Props) => {
/>
{currentVote !== undefined && !hasVoted && (
<TertiaryCallout classes="px-[8px]">
{stCeloBalance.displayAsBase()} stCELO will vote {currentVote} for Proposal #
{proposal.parsedYAML?.cgp}
{stakedCeloThatCanVoteBalance.displayAsBase()} stCELO will vote {currentVote} for
Proposal #{proposal.parsedYAML?.cgp}
</TertiaryCallout>
)}
{!hasVoted && (
Expand Down
1 change: 1 addition & 0 deletions src/features/governance/hooks/useVote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export const useVote = () => {
);

return {
stakedCeloThatCanVoteBalance: new StCelo(stakedCeloBalance),
voteProposal,
voteProposalStatus,
getProposalVote,
Expand Down

0 comments on commit 48df149

Please sign in to comment.