From e5dc03a35384315aa9cf714cf1f8682b16a5bced Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 11 Dec 2024 11:32:03 +0100 Subject: [PATCH] [Glitch] Fix voting on polls Port da279df8ae029de80eb4709e1abdb95f132d5cfc to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/api/polls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, });