From 83f14e894c578849079d371e5dd4729165a363d1 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 28 Aug 2024 23:55:24 +0530 Subject: [PATCH] feat: handle radio change --- src/components/molecules/InterpretationLog.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index ed6ca0e5..ab5605ab 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -92,6 +92,13 @@ export const InterpretationLog = () => { scrollLogToBottom(); }, [log, scrollLogToBottom]); + const handleRadioChange = (event) => { + if (event.target.value === 'custom') { + setCustomValue(''); // Clear previous custom value on selection + } + }; + + useEffect(() => { socket?.on('log', handleLog); socket?.on('serializableCallback', handleSerializableCallback);