diff --git a/src/features/governance/components/Details.tsx b/src/features/governance/components/Details.tsx index da48f27b..a74e82f4 100644 --- a/src/features/governance/components/Details.tsx +++ b/src/features/governance/components/Details.tsx @@ -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, @@ -131,8 +132,8 @@ export const Details = ({ proposal }: Props) => { /> {currentVote !== undefined && !hasVoted && ( - {stCeloBalance.displayAsBase()} stCELO will vote {currentVote} for Proposal # - {proposal.parsedYAML?.cgp} + {stakedCeloThatCanVoteBalance.displayAsBase()} stCELO will vote {currentVote} for + Proposal #{proposal.parsedYAML?.cgp} )} {!hasVoted && ( diff --git a/src/features/governance/hooks/useVote.ts b/src/features/governance/hooks/useVote.ts index 609dacbc..24a1ce10 100644 --- a/src/features/governance/hooks/useVote.ts +++ b/src/features/governance/hooks/useVote.ts @@ -262,6 +262,7 @@ export const useVote = () => { ); return { + stakedCeloThatCanVoteBalance: new StCelo(stakedCeloBalance), voteProposal, voteProposalStatus, getProposalVote,