From 79e1ee49049b5ba03eb3d7545c4e8c34cf45dc34 Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 8 Jul 2024 15:15:03 +0200 Subject: [PATCH] removed aside count when the election status is upcoming, closes #7 --- src/components/Process/Aside.tsx | 41 +++++++++++++++++--------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/Process/Aside.tsx b/src/components/Process/Aside.tsx index d921c7a..344a828 100644 --- a/src/components/Process/Aside.tsx +++ b/src/components/Process/Aside.tsx @@ -62,25 +62,28 @@ const ProcessAside = () => { ? t('aside.submitting') : getStatusText(t, election?.status).toUpperCase()} - - {showVoters && !showVotes && ( - - , - text: , - }} - count={votersCount} - /> - + {election?.status !== ElectionStatus.UPCOMING && ( + <> + {showVoters && !showVotes && ( + + , + text: , + }} + count={votersCount} + /> + + )} + )} {showVotes && (