Fix rogue (partial) call bar
Call state is now null if there is no call, so check for that too
This commit is contained in:
parent
40ba342aa2
commit
4c11a82fef
1 changed files with 3 additions and 1 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue