Skip to content

Commit

Permalink
fix: update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed May 27, 2024
1 parent ed630b5 commit 19f3f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ChatPreviewTest = () => {
},
}}
badge={{ count: 2 }}
selected={true}
selected={false}
setSelected={console.log('Selected')}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const ChatPreview: React.FC<IChatPreviewProps> = (options: IChatPreviewPr
)}
</Message>

{hasBadgeCount && !options?.selected && isBot && <Badge theme={theme}>{options.badge?.count}</Badge>}
{((hasBadgeCount || isBot) && !options?.selected) && <Badge theme={theme}>{options.badge?.count}</Badge>}
</Section>
</Section>
</Button>
Expand Down

0 comments on commit 19f3f6b

Please sign in to comment.