chore: fix role

This commit is contained in:
Louis 2024-12-19 10:51:13 +07:00
parent 432477341c
commit bdcc3ef48c
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -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}
</div>
<p className="text-xs font-medium text-gray-400">
{props.created_at && displayDate(props.created_at ?? new Date())}