Poll: convert vote to string

This commit is contained in:
Alex Gleason 2022-06-21 11:25:20 -05:00
parent 572744a695
commit 55892e0a82
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const Poll: React.FC<IPoll> = ({ 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) {