Fix message type conversion in newChatView component

This commit is contained in:
anovazzi1 2024-02-07 18:14:31 -03:00
commit de854325ed

View file

@ -57,7 +57,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, sender_name };
return { isSend: !is_ai, message: String(message), sender_name };
});
setChatHistory(chatMessages);
}, [flowPool]);