Skip to content

Commit

Permalink
Merge pull request #293 from privacy-scaling-explorations/fix/display…
Browse files Browse the repository at this point in the history
…-voice-credit

fix: update X with real number
  • Loading branch information
ctrlc03 authored Sep 2, 2024
2 parents 1542707 + 488666c commit 599421d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/interface/src/components/EligibilityDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const EligibilityDialog = (): JSX.Element | null => {
const { disconnect } = useDisconnect();

const [openDialog, setOpenDialog] = useState<boolean>(!!address);
const { onSignup, isEligibleToVote, isRegistered } = useMaci();
const { onSignup, isEligibleToVote, isRegistered, initialVoiceCredits, votingEndsAt } = useMaci();
const router = useRouter();

const appState = useAppState();
Expand Down Expand Up @@ -73,14 +73,14 @@ export const EligibilityDialog = (): JSX.Element | null => {
buttonName="See all projects"
description={
<div className="flex flex-col gap-4">
<p>You have X voice credits to vote with.</p>
<p>You have {initialVoiceCredits} voice credits to vote with.</p>

<p>
Get started by adding projects to your ballot, then adding the amount of votes you want to allocate to
each one.
</p>

<p>Please submit your ballot by X date!</p>
<p>Please submit your ballot by {votingEndsAt.toString()}!</p>
</div>
}
isOpen={openDialog}
Expand Down

0 comments on commit 599421d

Please sign in to comment.