mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 16:25:19 +01:00
Fix voting on polls (#33266)
This commit is contained in:
parent
a4560d9278
commit
da279df8ae
1 changed files with 1 additions and 1 deletions
|
@ -6,5 +6,5 @@ export const apiGetPoll = (pollId: string) =>
|
||||||
|
|
||||||
export const apiPollVote = (pollId: string, choices: string[]) =>
|
export const apiPollVote = (pollId: string, choices: string[]) =>
|
||||||
apiRequestPost<ApiPollJSON>(`/v1/polls/${pollId}/votes`, {
|
apiRequestPost<ApiPollJSON>(`/v1/polls/${pollId}/votes`, {
|
||||||
data: { choices },
|
choices,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue