Skip to content

Commit

Permalink
fix: 필터 의존성 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yougyung committed Feb 19, 2024
1 parent de5ea78 commit 88e8b5a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/modal/FilterOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ export default function FilterOption({
const [isFilter, setIsFilter] = useState<boolean>(false);
const [active, setActive] = useState<string>('');

useEffect(() => {
handleList();
handleFilter();
});
useEffect(() => handleList(), [option]);
useEffect(() => handleFilter(), [categoryClubList, recruitClubList]);

function handleFilter() {
const filtered = recruitClubList.filter((item) =>
Expand Down

0 comments on commit 88e8b5a

Please sign in to comment.