From eea195bcfc56f4e7d3bfb4e88ad262eea19537af Mon Sep 17 00:00:00 2001 From: hae-on Date: Wed, 4 Oct 2023 19:59:59 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80?= =?UTF-8?q?=20=EC=95=8A=EB=8A=94=20alert=20=EB=A9=94=EC=84=B8=EC=A7=80=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 이도현 --- frontend/src/hooks/queries/article.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/hooks/queries/article.ts b/frontend/src/hooks/queries/article.ts index 8ac401690..2c9a8cd3b 100644 --- a/frontend/src/hooks/queries/article.ts +++ b/frontend/src/hooks/queries/article.ts @@ -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); };