From 955fa1f49f62d6fe1606dba6ea30877c6d4e2e7c Mon Sep 17 00:00:00 2001 From: Bettenbuk Zoltan Date: Thu, 21 Nov 2019 14:20:46 +0100 Subject: [PATCH] fix: undefined is not an object on bitrate --- react/features/base/testing/components/TestConnectionInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/base/testing/components/TestConnectionInfo.js b/react/features/base/testing/components/TestConnectionInfo.js index 66e1ee9f8..26be10f42 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 { this.setState({ stats: { bitrate: { - download: stats.bitrate.download, - upload: stats.bitrate.upload + download: stats.bitrate?.download || 0, + upload: stats.bitrate?.upload || 0 } } });