feat: handle radio change
This commit is contained in:
@@ -92,6 +92,13 @@ export const InterpretationLog = () => {
|
|||||||
scrollLogToBottom();
|
scrollLogToBottom();
|
||||||
}, [log, scrollLogToBottom]);
|
}, [log, scrollLogToBottom]);
|
||||||
|
|
||||||
|
const handleRadioChange = (event) => {
|
||||||
|
if (event.target.value === 'custom') {
|
||||||
|
setCustomValue(''); // Clear previous custom value on selection
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
socket?.on('log', handleLog);
|
socket?.on('log', handleLog);
|
||||||
socket?.on('serializableCallback', handleSerializableCallback);
|
socket?.on('serializableCallback', handleSerializableCallback);
|
||||||
|
|||||||
Reference in New Issue
Block a user