Skip to content

Commit cb2851b

Browse files
committed
FIX: 핸들러 네이밍 통일
1 parent c2420b7 commit cb2851b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-app/src/pages/Vote.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Vote = () => {
2222
handleSelect,
2323
handleSubmit,
2424
} = useVote();
25-
25+
2626
const currentPollId = useMemo(() => pollIds[pageIndex], [pollIds, pageIndex]);
2727

2828
const currentCandidates = useMemo(() => pollData[currentPollId] || [], [pollData, currentPollId]);
@@ -73,7 +73,7 @@ const Vote = () => {
7373
userName: c.userName,
7474
}))}
7575
selectedCandidateId={selectedCandidateId}
76-
onSelect={(candidateId) => handleCandidateSelect(currentPollId, candidateId)}
76+
onSelect={(candidateId) => handleSelect(currentPollId, candidateId)}
7777
/>
7878
</div>
7979
</div>

0 commit comments

Comments
 (0)