Skip to content

Commit

Permalink
Merge pull request #336 from SlamTalk/hotfix/community-comment
Browse files Browse the repository at this point in the history
커뮤니티 모바일 환경 댓글 작성 에러 수정
  • Loading branch information
SwimmingRiver committed May 16, 2024
2 parents b417475 + fab8b2a commit 6e8eeaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/community/article/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Page = () => {
mutationKey: ['postComment'],
mutationFn: () => postComment(commentData),
});
const handlePostComment = () => {
const handlePostComment = async () => {
if (comment.length > 200) {
CommentModal.onOpen();
return;
Expand All @@ -90,7 +90,7 @@ const Page = () => {
content: comment,
});

postCommunityComment.mutate();
await postCommunityComment.mutate();
setComment('');

const currentUrl = window.location.href;
Expand Down

0 comments on commit 6e8eeaf

Please sign in to comment.