Skip to content

Commit

Permalink
Fix: vote slide
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamyam-code committed Jan 28, 2024
1 parent 22231d4 commit 6dbf213
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/Vote/VoteContent/VoteContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,16 @@ const VoteContent = ({onBottomSlideOpen, data}: VoteContentProps) => {
isCandidateSelecting={isCandidateSelecting}
showResults={showResults}
/>

{candidates && (
<VoteRecommendList
state={data.voteStatus}
isCandidateSelecting={isCandidateSelecting}
categoryCode={candidates[0].placeInfo.category}
/>
)}

{isCandidateSelecting && <DeleteCandidatesButton />}
</div>
{candidates && (
<VoteRecommendList
state={data.voteStatus}
isCandidateSelecting={isCandidateSelecting}
categoryCode={candidates[0].placeInfo.category}
/>
)}

{isCandidateSelecting && <DeleteCandidatesButton />}
</div>
);
};
Expand Down

0 comments on commit 6dbf213

Please sign in to comment.