feat: handle radio change

This commit is contained in:
karishmas6
2024-08-28 23:55:24 +05:30
parent 636b3e4145
commit 83f14e894c

View File

@@ -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);