Browse Source

[RN] Fix a TypeError when invoking humanize() on undefined

master
Lyubo Marinov 7 years ago
parent
commit
037e7f59b0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/recent-list/functions.js

+ 1
- 1
react/features/recent-list/functions.js View File

50
 
50
 
51
             if (uri && uri.room && uri.hostname) {
51
             if (uri && uri.room && uri.hostname) {
52
                 const duration
52
                 const duration
53
-                    = e.duration || /* legacy */ e.conferenceDuration;
53
+                    = e.duration || /* legacy */ e.conferenceDuration || 0;
54
 
54
 
55
                 recentRoomDS.push({
55
                 recentRoomDS.push({
56
                     baseURL: `${uri.protocol}//${uri.host}`,
56
                     baseURL: `${uri.protocol}//${uri.host}`,

Loading…
Cancel
Save