feat: handle radio change

This commit is contained in:
karishmas6
2024-08-29 23:01:52 +05:30
parent 9a3394c30b
commit f6df1ad2c6

View File

@@ -93,11 +93,10 @@ export const InterpretationLog = () => {
scrollLogToBottom();
}, [log, scrollLogToBottom]);
const handleRadioChange = (event: any) => {
if (event.target.value === 'custom') {
setCustomValue(''); // Clear previous custom value on selection
}
};
const handleRadioChange = (event: React.ChangeEvent<HTMLInputElement>) => {
  setSelectedOption(event.target.value);
  };
const handleCustomInputChange = (event: any) => {
setCustomValue(event.target.value);