Skip to content

Commit eab6011

Browse files
committed
Fix type error
1 parent 2f2d7f0 commit eab6011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fluent-theme/src/components/activity/CopilotMessageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function CopilotMessageHeader(props: CopilotMessageHeaderProps) {
3838

3939
const author = useFirstActivityAuthor(activity);
4040
const avatarImage = author?.image[0] || botAvatarImage;
41-
const botTitle = author?.name[0] || activity?.from?.name;
41+
const botTitle = (author?.name[0] || activity?.from?.name) ?? '';
4242

4343
return (
4444
<div className={cx(classNames['copilot-message-header'], className)}>

0 commit comments

Comments
 (0)