This commit is contained in:
2025-03-24 13:57:52 +05:00
parent 143ba63e09
commit 07b8576d26
4 changed files with 7 additions and 10 deletions
-4
View File
@@ -20,10 +20,6 @@ export default function Select({ options, onChange }: Props) {
setIsOpen(false);
}
useEffect(() => {
console.log(selectedOption);
}, [selectedOption]);
useEffect(() => {
if (selectedOption && !options.includes(selectedOption)) {
setSelectedOption(undefined);