Browse Source

fix: Handles the case of e2eRtt being undefined. (#3354)

master
bgrozev 7 years ago
parent
commit
2f1223f721

+ 5
- 1
react/features/connection-stats/components/ConnectionStatsTable.js View File

@@ -227,7 +227,11 @@ class ConnectionStatsTable extends Component {
227 227
      */
228 228
     _renderE2eRtt() {
229 229
         const { e2eRtt, region, t } = this.props;
230
-        const str = `${e2eRtt.toFixed(0)}ms (${region ? region : 'unknown'})`;
230
+        let str = e2eRtt ? `${e2eRtt.toFixed(0)}ms` : 'N/A';
231
+
232
+        if (region) {
233
+            str += ` (${region})`;
234
+        }
231 235
 
232 236
         return (
233 237
             <tr>

Loading…
Cancel
Save