Skip to content

Commit

Permalink
Add count to instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 13, 2023
1 parent 14e051d commit 46bb275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/VoteOptionsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useWallet } from "@solana/wallet-adapter-react";
import { BsLink45Deg } from "react-icons/bs";
import { useNetwork } from "../hooks/useNetwork";
import { useWalletModal } from "@solana/wallet-adapter-react-ui";
import { useProposal } from "@helium/modular-governance-hooks";

const VoteOptionsSection: React.FC<{
outcomes: Outcome[];
Expand All @@ -26,6 +27,7 @@ const VoteOptionsSection: React.FC<{
loading: voting,
error: voteErr,
} = useVote(proposalKey);
const { info: proposal } = useProposal(proposalKey)
const {
canRelinquishVote,
relinquishVote,
Expand Down Expand Up @@ -86,7 +88,7 @@ const VoteOptionsSection: React.FC<{
{connected && !noVotingPower && (
<p className="text-white mb-2">
To vote, click on any option. To remove your vote, click the
option again.
option again. Vote for up to {proposal?.maxChoicesPerVoter} of {proposal?.choices.length} options.
</p>
)}

Expand Down

0 comments on commit 46bb275

Please sign in to comment.