diff --git a/src/History/components/MyLecueBook/index.tsx b/src/History/components/MyLecueBook/index.tsx index 2b4a64a2..7210fcf7 100644 --- a/src/History/components/MyLecueBook/index.tsx +++ b/src/History/components/MyLecueBook/index.tsx @@ -27,7 +27,7 @@ function MyLecueBook(props: LecueBookProps) { const deleteMutation = useDeleteMyBook(); const FavoritePostMutation = usePostFavorite(); - const FavoriteDeleteMutation = useDeleteFavorite(); + const FavoriteDeleteMutation = useDeleteFavorite('mypage'); const convertNoteCount = (noteNum: number) => { setNoteCount(noteNum.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')); diff --git a/src/Home/components/NoBookmarkList/index.tsx b/src/Home/components/NoBookmarkList/index.tsx index c2c43909..46150723 100644 --- a/src/Home/components/NoBookmarkList/index.tsx +++ b/src/Home/components/NoBookmarkList/index.tsx @@ -6,7 +6,7 @@ const NoBookmarkList = () => { const navigate = useNavigate(); const handleClickNavigateBtn = () => { - navigate('/mypage'); + navigate('/mypage/history', { state: 2 }); }; return (