fix the hacky checkboxes

This commit is contained in:
[poww10s]
2020-11-18 16:51:56 -05:00
parent 9a3621cac8
commit 7aa1b727c4
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -31,8 +31,9 @@ const Checkbox = (props) => {
return (
<input
type="checkbox"
checked={props.parameter}
onChange={(e) => props.onChange(e.target.value)}
value={props.parameter}
defaultChecked={props.parameter}
onChange={(e) => props.onChange(e.target.checked)}
/>
);
};