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: Handles the case of e2eRtt being undefined. (#3354)

bgrozev2f1223f7211b
diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js
index c9f1efd46c..ec0b5cd1e9 100644
--- a/react/features/connection-stats/components/ConnectionStatsTable.js
+++ b/react/features/connection-stats/components/ConnectionStatsTable.js
@@ -227,7 +227,11 @@ class ConnectionStatsTable extends Component {
*/
_renderE2eRtt() {
const { e2eRtt, region, t } = this.props;
- const str = `${e2eRtt.toFixed(0)}ms (${region ? region : 'unknown'})`;
+ let str = e2eRtt ? `${e2eRtt.toFixed(0)}ms` : 'N/A';
+
+ if (region) {
+ str += ` (${region})`;
+ }
return (
<tr>