File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ const StartUI: React.FC<StartUIProps> = ({
9191 const actions = mainViewModel . actions ;
9292 const isTeam = teamState . isTeam ( ) ;
9393 const defaultProtocol = teamState . teamFeatures ( ) ?. mls ?. config . defaultProtocol ;
94+ const areServicesSupportedByProtocol = defaultProtocol !== ConversationProtocol . MLS ;
95+ const showServiceTab = isTeam && canChatWithServices ( ) && areServicesSupportedByProtocol ;
9496
9597 const [ searchQuery , setSearchQuery ] = useState ( '' ) ;
9698 const [ activeTab , setActiveTab ] = useState ( Tabs . PEOPLE ) ;
@@ -150,7 +152,7 @@ const StartUI: React.FC<StartUIProps> = ({
150152 forceDark
151153 />
152154 </ div >
153- { isTeam && canChatWithServices ( ) && defaultProtocol != ConversationProtocol . MLS && (
155+ { showServiceTab && (
154156 < ul className = "start-ui-list-tabs" >
155157 < li className = { `start-ui-list-tab ${ activeTab === Tabs . PEOPLE ? 'active' : '' } ` } >
156158 < button
You can’t perform that action at this time.
0 commit comments