diff --git a/src/components/FilterDropdown/index.tsx b/src/components/FilterDropdown/index.tsx index 656e76ff..5af6bad8 100644 --- a/src/components/FilterDropdown/index.tsx +++ b/src/components/FilterDropdown/index.tsx @@ -32,7 +32,7 @@ const FilterDropdown: FC = ({ return () => document.removeEventListener('mousedown', handleClickOutside); }, []); - const handleSelect = (option: string) => { + const handleOptionSelect = (option: string) => { onChange(option); setIsDropdownOpen(false); }; @@ -66,7 +66,7 @@ const FilterDropdown: FC = ({ {options.map((option, index) => (
  • handleSelect(option)} + onClick={() => handleOptionSelect(option)} aria-current={option === selected ? 'true' : undefined} className={`block w-[149px] h-[44px] px-[23px] py-[10px] text-gray-400 cursor-pointer hover:bg-gray-800`} >