From 3ecc0cbd858f7eee2fb52d82ae48bbedc559badc Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Mon, 3 Mar 2025 23:26:39 +0000 Subject: [PATCH] Update NewChatForm.tsx --- components/dashboard/NewChatForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dashboard/NewChatForm.tsx b/components/dashboard/NewChatForm.tsx index 32aa5ed..6225cf2 100644 --- a/components/dashboard/NewChatForm.tsx +++ b/components/dashboard/NewChatForm.tsx @@ -115,10 +115,10 @@ export default function NewChatForm() { } }); - const response = await authAxios.post("/api/chats/create", { + const response = await authAxios.post("/chats/create", { buyerId, storeId: selectedStore, - initialMessage + initialMessage: initialMessage.trim() || undefined }); if (response.data.chatId) {