fix: undefined is not an object on bitrate

This commit is contained in:
Bettenbuk Zoltan 2019-11-21 14:20:46 +01:00 committed by Zoltan Bettenbuk
parent 2544d0a084
commit 955fa1f49f
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}
});