|
@@ -90,7 +90,7 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
90
|
90
|
constructor() {
|
91
|
91
|
super();
|
92
|
92
|
this.state = {
|
93
|
|
- durationString: 'N/A'
|
|
93
|
+ durationString: ''
|
94
|
94
|
};
|
95
|
95
|
}
|
96
|
96
|
|
|
@@ -211,7 +211,9 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
211
|
211
|
</span>
|
212
|
212
|
<span className = 'spacer'> </span>
|
213
|
213
|
<span className = 'info-value'>
|
214
|
|
- { durationString }
|
|
214
|
+ { durationString === ''
|
|
215
|
+ ? t('localRecording.durationNA')
|
|
216
|
+ : durationString }
|
215
|
217
|
</span>
|
216
|
218
|
</div>
|
217
|
219
|
}
|
|
@@ -267,6 +269,10 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
267
|
269
|
* @returns {string}
|
268
|
270
|
*/
|
269
|
271
|
_getDuration(now, prev) {
|
|
272
|
+ if (prev === null || prev === undefined) {
|
|
273
|
+ return '';
|
|
274
|
+ }
|
|
275
|
+
|
270
|
276
|
// Still a hack, as moment.js does not support formatting of duration
|
271
|
277
|
// (i.e. TimeDelta). Only works if total duration < 24 hours.
|
272
|
278
|
// But who is going to have a 24-hour long conference?
|