diff --git a/src/components/RadioButtons.tsx b/src/components/RadioButtons.tsx index c9ebf712072e..2030ce8f0bfd 100644 --- a/src/components/RadioButtons.tsx +++ b/src/components/RadioButtons.tsx @@ -39,11 +39,12 @@ type RadioButtonsProps = { function RadioButtons({items, onPress, defaultCheckedValue = '', radioButtonStyle, errorText, onInputChange = () => {}, value}: RadioButtonsProps, ref: ForwardedRef) { const styles = useThemeStyles(); const [checkedValue, setCheckedValue] = useState(defaultCheckedValue); + useEffect(() => { if (value === checkedValue || value === undefined) { return; } - setCheckedValue(value); + setCheckedValue(value ?? ''); }, [checkedValue, value]); return (