Update NewChatForm.tsx
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user