Skip to content

Commit

Permalink
chore: 사용하지 않는 alert 메세지 삭제
Browse files Browse the repository at this point in the history
Co-authored-by: 이도현 <[email protected]>
  • Loading branch information
hae-on and Creative-Lee committed Oct 4, 2023
1 parent c5ba5b3 commit eea195b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/src/hooks/queries/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,5 @@ export const usePutArticleLikeMutation = () => {
};

export const usePostArticleViewsMutation = () => {
return useMutation(requestPostArticleView, {
onSuccess: () => {
alert(SUCCESS_MESSAGE.CREATE_ARTICLE);
},
onError: () => {
alert(ERROR_MESSAGE.DEFAULT);
},
});
return useMutation(requestPostArticleView);
};

0 comments on commit eea195b

Please sign in to comment.