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

pull/3357/head jitsi-meet_3277
bgrozev 7 years ago committed by virtuacoplenny
parent 2ee1bf9351
commit 2f1223f721
  1. 6
      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>

Loading…
Cancel
Save