From 52b75b5c19c69d5b5eb8acc464c378c097bb5536 Mon Sep 17 00:00:00 2001 From: Ilgeldi Date: Fri, 28 Mar 2025 22:40:28 +0500 Subject: [PATCH] fix conditional in vote page --- components/vote/ParticipantsList.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/vote/ParticipantsList.tsx b/components/vote/ParticipantsList.tsx index d8ce53e..cdec7a8 100644 --- a/components/vote/ParticipantsList.tsx +++ b/components/vote/ParticipantsList.tsx @@ -74,8 +74,7 @@ const ParticipantsList = ({ vote_id, all }: IParams) => { setVoteStatus(res.data.status); setSmsNumber(res.data.sms_number); }); - } - { + } else { router.push("/vote/active"); }