Skip to content

Commit

Permalink
Merge pull request #2748 from daostack/CW-fix-plus-button
Browse files Browse the repository at this point in the history
Fix plus button with useless options
  • Loading branch information
MeyerPV authored Oct 30, 2024
2 parents 623cbf4 + 7dbf8c9 commit 1c1bc96
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const NewStreamButton: FC<NewStreamButtonProps> = (props) => {
return null;
}

if(items.length === 2) {
if (items.length === 2 || (items.length === 1 && items[0].id === CommonAction.NewDiscussion)) {
return (
<ButtonIcon className={styles.buttonIcon} onClick={onNewDiscussion}>
<PlusIcon className={styles.icon} />
</ButtonIcon>
<PlusIcon className={styles.icon} />
</ButtonIcon>
)
}

Expand Down

0 comments on commit 1c1bc96

Please sign in to comment.