Skip to content

Commit

Permalink
CW-fix-plus-button
Browse files Browse the repository at this point in the history
Added condition for non-admin users
  • Loading branch information
pvm-code committed Oct 16, 2024
1 parent 05f3419 commit 7dbf8c9
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 7dbf8c9

Please sign in to comment.