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())}