Skip to content

Commit

Permalink
Merge pull request #337 from SlamTalk/develop
Browse files Browse the repository at this point in the history
모바일 브라우저 환경에서 댓글 작성 오류 수정
  • Loading branch information
SwimmingRiver committed May 16, 2024
2 parents 3ffbc63 + 6e8eeaf commit eda6952
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 eda6952

Please sign in to comment.