From 55892e0a82445984b90f50a5c7773cbc86cf81e4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 21 Jun 2022 11:25:20 -0500 Subject: [PATCH] Poll: convert vote to string --- app/soapbox/components/polls/poll.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/components/polls/poll.tsx b/app/soapbox/components/polls/poll.tsx index b6d8a0d0f..cdd412fa6 100644 --- a/app/soapbox/components/polls/poll.tsx +++ b/app/soapbox/components/polls/poll.tsx @@ -37,7 +37,7 @@ const Poll: React.FC = ({ id, status }): JSX.Element | null => { ap_id: status, })); - const handleVote = (selectedId: number) => dispatch(vote(id, [selectedId])); + const handleVote = (selectedId: number) => dispatch(vote(id, [String(selectedId)])); const toggleOption = (value: number) => { if (isLoggedIn) {