sforkowany z mirror/soapbox
Poll: convert vote to string
rodzic
572744a695
commit
55892e0a82
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue