From a2f3f3f39a6631055dc398e70965bd74a5c93fb7 Mon Sep 17 00:00:00 2001 From: nflnkr Date: Wed, 29 Mar 2023 14:11:27 +0300 Subject: [PATCH] fix blank message sending --- src/pages/dashboard/Content/Support/Chat/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/dashboard/Content/Support/Chat/Chat.tsx b/src/pages/dashboard/Content/Support/Chat/Chat.tsx index 7576741..cfeb03b 100644 --- a/src/pages/dashboard/Content/Support/Chat/Chat.tsx +++ b/src/pages/dashboard/Content/Support/Chat/Chat.tsx @@ -93,7 +93,7 @@ export default function Chat() { } function handleSendMessage() { - if (!ticketId) return; + if (!ticketId || !messageField) return; sendTicketMessage({ body: {