fix: undefined is not an object on bitrate

pull/4883/head
Bettenbuk Zoltan 6 years ago committed by Zoltan Bettenbuk
parent 2544d0a084
commit 955fa1f49f
  1. 4
      react/features/base/testing/components/TestConnectionInfo.js

@ -117,8 +117,8 @@ class TestConnectionInfo extends Component<Props, State> {
this.setState({
stats: {
bitrate: {
download: stats.bitrate.download,
upload: stats.bitrate.upload
download: stats.bitrate?.download || 0,
upload: stats.bitrate?.upload || 0
}
}
});

Loading…
Cancel
Save