Fix message parameter type in newChatView component

This commit is contained in:
anovazzi1 2024-02-08 19:01:38 -03:00
commit 921a662f79

View file

@ -64,7 +64,7 @@ export default function newChatView(): JSX.Element {
.artifacts as ChatOutputType;
console.log(output.data.artifacts);
const is_ai = sender === "Machine";
return { isSend: !is_ai, message: String(message), sender_name };
return { isSend: !is_ai, message: message, sender_name };
});
setChatHistory(chatMessages);
}, [flowPool]);