From 3f87db5d31dd2807da66afe9caaeac715ad48b6b Mon Sep 17 00:00:00 2001 From: seongminn Date: Thu, 30 Nov 2023 19:01:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20value=EA=B0=80=20=EB=B9=84=EC=97=88?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EB=8C=93=EA=B8=80=EC=9D=B4=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/match/CommentForm/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/match/CommentForm/index.tsx b/src/components/match/CommentForm/index.tsx index 9c16c4f..b9a8b4f 100644 --- a/src/components/match/CommentForm/index.tsx +++ b/src/components/match/CommentForm/index.tsx @@ -34,6 +34,9 @@ export default function CommentForm({ payload: MatchCommentPayload, ) => { e.preventDefault(); + + if (inputValue.trim() === '') return; + mutate({ ...payload, gameTeamId: selectedTeamId }); setInputValue(''); scrollToBottom();