Skip to content

Commit 1cf2c44

Browse files
authored
check isbot property before displaying botbadge (#4548)
(cherry picked from commit 8544a25)
1 parent fe90cb8 commit 1cf2c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/components/markdownEditorInput/entryComponent/entryComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Entry = (props: EntryComponentProps): ReactElement => {
3030
/>
3131
<div className={theme?.mentionSuggestionsEntryText}>
3232
{mention.name}
33-
{BotBadge && <BotBadge show={mention.is_bot}/>}
33+
{BotBadge && mention.is_bot && <BotBadge/>}
3434
<GuestBadge show={mention.is_guest}/>
3535
</div>
3636
<div className={theme?.mentionSuggestionsEntryText}>

0 commit comments

Comments
 (0)