diff --git a/app/javascript/flavours/glitch/api/polls.ts b/app/javascript/flavours/glitch/api/polls.ts index 5c56d0fece..e4a31d8b80 100644 --- a/app/javascript/flavours/glitch/api/polls.ts +++ b/app/javascript/flavours/glitch/api/polls.ts @@ -6,5 +6,5 @@ export const apiGetPoll = (pollId: string) => export const apiPollVote = (pollId: string, choices: string[]) => apiRequestPost(`/v1/polls/${pollId}/votes`, { - data: { choices }, + choices, });