Update NewChatForm.tsx

This commit is contained in:
NotII
2025-03-03 23:26:39 +00:00
parent 2d0c74d906
commit 3ecc0cbd85

View File

@@ -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) {