Skip to content

Commit

Permalink
always show page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed Dec 7, 2024
1 parent 66647a7 commit f17350a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion client/src/views/client/ClientView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ClientView(props) {
/>
<TabPage
name={getTranslation(null, 'navbar.vc')}
hidden={!props.voiceReady}
hidden={(!props.voiceReady && !props.voiceLoading && !props.voiceError)}
buttonContent={<IconMemos.VoiceChat />}
content={<VoicePageMemo />}
subtext={props.voicePeerCount > 0 ? `${props.voicePeerCount} ${
Expand Down Expand Up @@ -100,6 +100,8 @@ function mapStateToProps(state) {
fixedFooter: state.fixedFooter,
loadingOverlay: state.loadingOverlay,
voiceReady: state.voiceState.ready,
voiceLoading: state.voiceState.loading,
voiceError: state.voiceState.failedGeneric,
voicePeerCount: Object.keys(state.voiceState.peers).length,
browserSupportIsLimited: state.browserSupportIsLimited,
navbarDetails: state.navbarDetails,
Expand Down
2 changes: 0 additions & 2 deletions client/src/views/client/pages/voice/VoicePage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
import React from 'react';
import { connect } from 'react-redux';
import {
Expand Down Expand Up @@ -125,7 +124,6 @@ function ActionCard({
}

function VoicePage({ voiceState, color }) {

if (voiceState.failedGeneric) {
return <VoiceErrorState color={color} errorMessage={voiceState.failedErrorContext} />;
}
Expand Down

0 comments on commit f17350a

Please sign in to comment.