1
0
Fork 0

🐛 Proper handling of bool options

This commit is contained in:
Joost De Cock 2019-06-30 10:52:43 +02:00
parent 402ee88138
commit bae6c4f244

View file

@ -18,14 +18,14 @@ const Bool = props => {
<FormControlLabel
control={<Radio color="primary" />}
value="false"
checked={value === "false" ? true : false}
checked={value === "false" || value === false ? true : false}
label={props.labels[0]}
className="po-list-item"
/>
<FormControlLabel
control={<Radio color="primary" />}
value="true"
checked={value === "true" ? true : false}
checked={value === "true" || value === true ? true : false}
label={props.labels[1]}
className="po-list-item"
/>