fix: undefined is not an object on bitrate
This commit is contained in:
parent
2544d0a084
commit
955fa1f49f
@ -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…
x
Reference in New Issue
Block a user