Skip to content

Commit

Permalink
Fix(mogua-station#132): 유저 태그 삭제 시 한 번에 두 개씩 삭제되는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Stilllee committed Feb 9, 2025
1 parent d570ed2 commit 84c3b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/user/useTagList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function useTagList({ defaultTags = [], onTagsChange }: TagListProps) {
}, []);

const deleteLastTag = useCallback(() => {
setTagList((prev) => prev.slice(0, -2));
setTagList((prev) => prev.slice(0, -1));
}, []);

const handleTagsChange = useCallback(
Expand Down

0 comments on commit 84c3b11

Please sign in to comment.