1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-08 15:06:08 +02:00

check isbot property before displaying botbadge (#4548)

(cherry picked from commit 8544a25746)
This commit is contained in:
Scott Bishel 2023-02-03 09:34:58 -07:00 committed by GitHub
parent fe90cb8224
commit 1cf2c44ac0
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}>