diff --git a/frontend/src/components/features/posts/PostDetail.jsx b/frontend/src/components/features/posts/PostDetail.jsx index fde3084..f645a10 100644 --- a/frontend/src/components/features/posts/PostDetail.jsx +++ b/frontend/src/components/features/posts/PostDetail.jsx @@ -41,7 +41,9 @@ function PostDetail({ const [newComments, setNewComments] = useState(comments); useEffect(() => { - if (userLikes[id]) {setLiked(true);} + if (userLikes[id]) { + setLiked(true); + } // eslint-disable-next-line react-hooks/exhaustive-deps }, []); @@ -70,7 +72,9 @@ function PostDetail({ const { comment } = FormatForm(event); - if (!comment) {return;} + if (!comment) { + return; + } fetchData(`${apiUrl}api/posts/${id}/comments`, { method: 'POST', @@ -97,10 +101,10 @@ function PostDetail({ } return ( -
+
{/* Post */}
@@ -136,7 +140,7 @@ function PostDetail({ {content.slice(0, @@ -237,7 +241,7 @@ function PostDetail({