Merge pull request #4530 from mattermost/gh-4520-bots
GH-4520 - Check isBot property before displaying BotBadge
This commit is contained in:
commit
ed5651404a
1 changed files with 1 additions and 1 deletions
|
@ -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}>
|
||||
|
|
Loading…
Reference in a new issue