Skip to content

Commit

Permalink
check isbot property before displaying botbadge (#4548)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8544a25)
  • Loading branch information
sbishel authored Feb 3, 2023
1 parent fe90cb8 commit 1cf2c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down

0 comments on commit 1cf2c44

Please sign in to comment.