diff --git a/src/components/AnswerContent/index.jsx b/src/components/AnswerContent/index.jsx index 953936e..fb1544b 100644 --- a/src/components/AnswerContent/index.jsx +++ b/src/components/AnswerContent/index.jsx @@ -46,15 +46,12 @@ const AnswerContent = ({ answer, name, imageSource, id, onAnswerSubmit }) => { let response; try { setIsLoading(true); - // setError(null); response = await postAnswer(id, postBody); setUpdatedAnswer(response); onAnswerSubmit(id, response); } catch (err) { - // setError(`${response} : 답변을 등록하던 중 오류가 발생했습니다. 페이지를 새로고침합니다.`); - // setTimeout(() => { - // window.location.reload(); - // }, 2000); + // eslint-disable-next-line + console.error(err); } finally { setIsLoading(false); } @@ -64,7 +61,7 @@ const AnswerContent = ({ answer, name, imageSource, id, onAnswerSubmit }) => { const renderAnswerHeader = () => (
-

{name}

+

{name}

{formatCreatedAt(updatedAnswer.createdAt)}

); diff --git a/src/components/CountFavorite/index.jsx b/src/components/CountFavorite/index.jsx index 49a81fe..2b29717 100644 --- a/src/components/CountFavorite/index.jsx +++ b/src/components/CountFavorite/index.jsx @@ -41,8 +41,8 @@ const CountFavorite = ({ like, dislike, id }) => {

좋아요 {`${favoriteCount || ''}`}

); diff --git a/src/components/DeleteIdBtn/index.jsx b/src/components/DeleteIdBtn/index.jsx index 3bfe53f..1cec6de 100644 --- a/src/components/DeleteIdBtn/index.jsx +++ b/src/components/DeleteIdBtn/index.jsx @@ -11,7 +11,7 @@ const DeleteIdBtn = ({ onClick, id }) => { }; return ( -
+