mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-24 00:19:34 +02:00
fix: misc
This commit is contained in:
@@ -24,7 +24,11 @@ const SelectWithDesc = <T extends string | boolean>({
|
||||
description: string;
|
||||
}) => {
|
||||
const handleChange = (event: SelectChangeEvent<T>) => {
|
||||
onChange(event.target.value as T);
|
||||
const newValue =
|
||||
typeof selected === 'boolean'
|
||||
? event.target.value === 'true'
|
||||
: event.target.value;
|
||||
onChange(newValue as T);
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user