1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-02-04 19:15:49 +02:00

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}> <div className={theme?.mentionSuggestionsEntryText}>
{mention.name} {mention.name}
{BotBadge && <BotBadge show={mention.is_bot}/>} {BotBadge && mention.is_bot && <BotBadge/>}
<GuestBadge show={mention.is_guest}/> <GuestBadge show={mention.is_guest}/>
</div> </div>
<div className={theme?.mentionSuggestionsEntryText}> <div className={theme?.mentionSuggestionsEntryText}>