Skip to content

Commit

Permalink
Better display when user did not vote on proposal. (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xekez authored Apr 13, 2022
1 parent 9f571e0 commit a5a816f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/dapp/components/ProposalDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export function ProposalDetailsSidebar({
<p className="text-tertiary text-sm font-mono">Yours</p>
{!walletVote && (
<p className="col-span-3 text-tertiary text-sm font-mono">
Pending...
{proposal.status === 'open' ? 'Pending...' : 'None'}
</p>
)}
{walletVote === 'yes' && (
Expand Down Expand Up @@ -612,6 +612,9 @@ export function ProposalDetails({
{walletVote && (
<p className="body-text">You voted {walletVote} on this proposal.</p>
)}
{proposal.status !== 'open' && !walletVote && (
<p className="body-text">You did not vote on this proposal.</p>
)}
{votingPower === 0 && (
<p className="body-text max-w-prose">
You must have voting power at the time of proposal creation to vote.{' '}
Expand Down

0 comments on commit a5a816f

Please sign in to comment.