From a5a816f3fdad04d4f438a4d2baf37b67f447462f Mon Sep 17 00:00:00 2001 From: zeke <30676292+ezekiiel@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:37:12 -0700 Subject: [PATCH] Better display when user did not vote on proposal. (#478) --- apps/dapp/components/ProposalDetails.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dapp/components/ProposalDetails.tsx b/apps/dapp/components/ProposalDetails.tsx index a8c1df25b..0f14f67e1 100644 --- a/apps/dapp/components/ProposalDetails.tsx +++ b/apps/dapp/components/ProposalDetails.tsx @@ -304,7 +304,7 @@ export function ProposalDetailsSidebar({

Yours

{!walletVote && (

- Pending... + {proposal.status === 'open' ? 'Pending...' : 'None'}

)} {walletVote === 'yes' && ( @@ -612,6 +612,9 @@ export function ProposalDetails({ {walletVote && (

You voted {walletVote} on this proposal.

)} + {proposal.status !== 'open' && !walletVote && ( +

You did not vote on this proposal.

+ )} {votingPower === 0 && (

You must have voting power at the time of proposal creation to vote.{' '}