[Glitch] Fix voting on polls

Port da279df8ae029de80eb4709e1abdb95f132d5cfc to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput 2024-12-11 11:32:03 +01:00 committed by Claire
parent 9e7a7c713f
commit e5dc03a353

View File

@ -6,5 +6,5 @@ export const apiGetPoll = (pollId: string) =>
export const apiPollVote = (pollId: string, choices: string[]) =>
apiRequestPost<ApiPollJSON>(`/v1/polls/${pollId}/votes`, {
data: { choices },
choices,
});