Skip to content

Commit

Permalink
feat: updated render
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Apr 2, 2024
1 parent a956d25 commit 24b29b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/election/Candidates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function Candidates() {
{users[candidate.uid].displayName}
</Button>
<Text fontSize={'sm'} color={'var(--muted-text)'}>
Total Votes Received: {candidate.votes.length}
Total Votes Received: {candidate.vote_count}
</Text>
</Stack>
) : (
Expand Down
1 change: 1 addition & 0 deletions src/lib/election.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ export interface CandidateDocType {
created_at: FieldValue;
updated_at: FieldValue;
votes: Array<string>;
vote_count: number;
}

0 comments on commit 24b29b2

Please sign in to comment.