Skip to content

Commit

Permalink
[ feat ] 19금 태그 선택 X
Browse files Browse the repository at this point in the history
  • Loading branch information
joohaem committed Jul 22, 2022
1 parent 027247f commit d62c8f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/CardCollection/FilterModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export default function FilterModal(props: FilterModalProps) {

// 태그를 눌렀을 때 함수
const toggleTag = (_tag: string) => {
if (_tag === "19금") return;

const tempCheckedTags = new Set([...checkedTags]);
tempCheckedTags.has(_tag) ? tempCheckedTags.delete(_tag) : tempCheckedTags.add(_tag);
setCheckedTags(tempCheckedTags);
Expand Down

0 comments on commit d62c8f6

Please sign in to comment.