[Glitch] Fix voting on polls
Port da279df8ae to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									9e7a7c713f
								
							
						
					
					
						commit
						e5dc03a353
					
				|  | @ -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, | ||||
|   }); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue