diff --git a/app/lib/components/Peers.jsx b/app/lib/components/Peers.jsx index 67036f5..9733d24 100644 --- a/app/lib/components/Peers.jsx +++ b/app/lib/components/Peers.jsx @@ -22,7 +22,12 @@ class Peers extends React.Component updateDimensions = () => { - const n = this.props.peers.length; + const n = this.props.videoStreams ? this.props.videoStreams : 0; + + if (n == 0) + { + return; + } const width = this.refs.peers.clientWidth; const height = this.refs.peers.clientHeight;