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)}
/>
);
};
+1 -1
View File
@@ -67,7 +67,7 @@ export default function EG(props) {
dispatch(
parameterUpdated({
id: props.id,
changes: { egReset: !parameters.egReset },
changes: { egReset: value },
})
)
}