Merge pull request #4530 from mattermost/gh-4520-bots

GH-4520 - Check isBot property before displaying BotBadge
This commit is contained in:
Scott Bishel 2023-02-03 09:03:42 -07:00 committed by GitHub
commit ed5651404a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ const Entry = (props: EntryComponentProps): ReactElement => {
/>
<div className={theme?.mentionSuggestionsEntryText}>
{mention.name}
{BotBadge && <BotBadge show={mention.is_bot}/>}
{BotBadge && mention.is_bot && <BotBadge/>}
<GuestBadge show={mention.is_guest}/>
</div>
<div className={theme?.mentionSuggestionsEntryText}>