From f6df1ad2c6753341534bc89f3135ef30e3117e9b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 29 Aug 2024 23:01:52 +0530 Subject: [PATCH] feat: handle radio change --- src/components/molecules/InterpretationLog.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index c913ce4d..57759192 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -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) => { +   setSelectedOption(event.target.value); +   }; + const handleCustomInputChange = (event: any) => { setCustomValue(event.target.value);