We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2420b7 commit cb2851bCopy full SHA for cb2851b
react-app/src/pages/Vote.tsx
@@ -22,7 +22,7 @@ const Vote = () => {
22
handleSelect,
23
handleSubmit,
24
} = useVote();
25
-
+
26
const currentPollId = useMemo(() => pollIds[pageIndex], [pollIds, pageIndex]);
27
28
const currentCandidates = useMemo(() => pollData[currentPollId] || [], [pollData, currentPollId]);
@@ -73,7 +73,7 @@ const Vote = () => {
73
userName: c.userName,
74
}))}
75
selectedCandidateId={selectedCandidateId}
76
- onSelect={(candidateId) => handleCandidateSelect(currentPollId, candidateId)}
+ onSelect={(candidateId) => handleSelect(currentPollId, candidateId)}
77
/>
78
</div>
79
0 commit comments