Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: undefined is not an object on bitrate

Bettenbuk Zoltan955fa1f49f62
diff --git a/react/features/base/testing/components/TestConnectionInfo.js b/react/features/base/testing/components/TestConnectionInfo.js
index 66e1ee9f8f..26be10f42c 100644
--- a/react/features/base/testing/components/TestConnectionInfo.js
+++ b/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
}
}
});