From 7dbf8c91f7a2d1d305526efc608c45210402886b Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Wed, 16 Oct 2024 12:17:04 +0300 Subject: [PATCH] CW-fix-plus-button Added condition for non-admin users --- .../components/NewStreamButton/NewStreamButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/commonFeed/components/HeaderContent/components/NewStreamButton/NewStreamButton.tsx b/src/pages/commonFeed/components/HeaderContent/components/NewStreamButton/NewStreamButton.tsx index e705ea06f..6d5f63859 100644 --- a/src/pages/commonFeed/components/HeaderContent/components/NewStreamButton/NewStreamButton.tsx +++ b/src/pages/commonFeed/components/HeaderContent/components/NewStreamButton/NewStreamButton.tsx @@ -49,11 +49,11 @@ const NewStreamButton: FC = (props) => { return null; } - if(items.length === 2) { + if (items.length === 2 || (items.length === 1 && items[0].id === CommonAction.NewDiscussion)) { return ( - - + + ) }