Skip to content

Commit

Permalink
Merge pull request #1574 from woowacourse/Bug/1573-bookmark
Browse files Browse the repository at this point in the history
fix: 체크된 상태 초기값 변경
  • Loading branch information
hae-on authored Oct 6, 2023
2 parents b384247 + 8cce838 commit ef0f981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Article/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const Article = ({
isBookmarked,
isLiked,
}: ArticleType) => {
const bookmarkRef = useRef(false);
const likeRef = useRef(false);
const bookmarkRef = useRef(isBookmarked);
const likeRef = useRef(isLiked);
const [bookmark, setBookmark] = useState(isBookmarked);
const [like, setLike] = useState(isLiked);
const { mutate: putBookmark } = usePutArticleBookmarkMutation();
Expand Down

0 comments on commit ef0f981

Please sign in to comment.