From bdcc3ef48cd0206419668f54a181b792fd0017e5 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 19 Dec 2024 10:51:13 +0700 Subject: [PATCH] chore: fix role --- web/screens/Thread/ThreadCenterPanel/TextMessage/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/screens/Thread/ThreadCenterPanel/TextMessage/index.tsx b/web/screens/Thread/ThreadCenterPanel/TextMessage/index.tsx index ddd82590b..52b10b827 100644 --- a/web/screens/Thread/ThreadCenterPanel/TextMessage/index.tsx +++ b/web/screens/Thread/ThreadCenterPanel/TextMessage/index.tsx @@ -88,7 +88,9 @@ const MessageContainer: React.FC< > {isUser ? props.role - : (activeAssistant?.assistant_name ?? props.role)} + : 'assistant_name' in activeAssistant + ? activeAssistant?.assistant_name + : props.role}

{props.created_at && displayDate(props.created_at ?? new Date())}