Skip to content

Commit

Permalink
Do not show votes when election is upcoming
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jul 9, 2024
1 parent a4427c7 commit 9f9c6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Process/Aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ProcessAside = () => {
election?.status !== ElectionStatus.CANCELED &&
election?.status !== ElectionStatus.UPCOMING &&
!(election?.electionType.anonymous && voting)
const showVotes = !election?.electionType.secretUntilTheEnd || election.status === ElectionStatus.RESULTS
const showVotes = !election?.electionType.secretUntilTheEnd && election.status !== ElectionStatus.UPCOMING

let totalWeight = 0
if (election && showVotes) {
Expand Down

1 comment on commit 9f9c6b0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.