Skip to content

Commit 1c1bc96

Browse files
authored
Merge pull request #2748 from daostack/CW-fix-plus-button
Fix plus button with useless options
2 parents 623cbf4 + 7dbf8c9 commit 1c1bc96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/commonFeed/components/HeaderContent/components/NewStreamButton/NewStreamButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ const NewStreamButton: FC<NewStreamButtonProps> = (props) => {
4949
return null;
5050
}
5151

52-
if(items.length === 2) {
52+
if (items.length === 2 || (items.length === 1 && items[0].id === CommonAction.NewDiscussion)) {
5353
return (
5454
<ButtonIcon className={styles.buttonIcon} onClick={onNewDiscussion}>
55-
<PlusIcon className={styles.icon} />
56-
</ButtonIcon>
55+
<PlusIcon className={styles.icon} />
56+
</ButtonIcon>
5757
)
5858
}
5959

0 commit comments

Comments
 (0)