Fix rogue (partial) call bar

Call state is now null if there is no call, so check for that too
pull/21833/head
David Baker 2020-10-13 12:16:15 +01:00
parent 40ba342aa2
commit 4c11a82fef
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@ export default class RoomStatusBar extends React.Component {
};
_showCallBar() {
return this.props.callState !== CallState.Ended && this.props.callState !== CallState.Ringing;
return (this.props.callState &&
(this.props.callState !== CallState.Ended && this.props.callState !== CallState.Ringing)
);
}
_onResendAllClick = () => {