Skip to content

Commit

Permalink
Render message "Els resultats provisionals..." when the election is n…
Browse files Browse the repository at this point in the history
…ot finished
  • Loading branch information
gerouvi committed Jul 4, 2024
1 parent 4a6e792 commit 74f3b08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Process/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@ export const ProcessView = () => {
<ChainedProcesses root={election} />
</TabPanel>
<TabPanel mb={20}>
<ChainedResults root={election} />
{' '}
{election instanceof PublishedElection && election?.status === ElectionStatus.ENDED ? (
<ChainedResults root={election} />
) : (
<Text textAlign='center' mt={10} fontWeight='bold' fontSize='24px'>
{t('cc.results.secret_until_the_end')}
</Text>
)}
</TabPanel>
</TabPanels>
<Text textAlign='center' mx='auto' maxW='1150px' my={10}>
Expand Down

1 comment on commit 74f3b08

@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.