[Glitch] Fix voting on polls

Port da279df8ae to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2921/head
Renaud Chaput 2024-12-11 11:32:03 +01:00 committed by Claire
parent 9e7a7c713f
commit e5dc03a353
1 changed files with 1 additions and 1 deletions

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,
});