diff --git a/packages/wow-ui/src/components/RadioGroup/RadioGroup.tsx b/packages/wow-ui/src/components/RadioGroup/RadioGroup.tsx index 20ba3b1b..b6ffc51d 100644 --- a/packages/wow-ui/src/components/RadioGroup/RadioGroup.tsx +++ b/packages/wow-ui/src/components/RadioGroup/RadioGroup.tsx @@ -30,10 +30,7 @@ const RadioGroup = ({ const handleChange = useCallback( (event: ChangeEvent) => { - setSelected(event.target.value); - if (onChange) { - onChange(event); - } + onChange ? onChange(event) : setSelected(event.target.value); }, [setSelected, onChange] );