diff --git a/static/src/js/components/CustomRadioWidget/CustomRadioWidget.jsx b/static/src/js/components/CustomRadioWidget/CustomRadioWidget.jsx index 00d8adff4..c63a295de 100644 --- a/static/src/js/components/CustomRadioWidget/CustomRadioWidget.jsx +++ b/static/src/js/components/CustomRadioWidget/CustomRadioWidget.jsx @@ -69,9 +69,8 @@ const CustomRadioWidget = ({ // Sets inputValue to input selected const handleChange = (event) => { - const { name } = event.target - const newValue = name === 'true' - + const { id: targetId } = event.target + const newValue = targetId.endsWith('-true') onChange(newValue) } @@ -100,7 +99,7 @@ const CustomRadioWidget = ({