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

This commit is contained in:
Lyubo Marinov 2018-02-28 17:16:24 -06:00
parent df754f4f41
commit 037e7f59b0
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export function getRecentRooms(list: Array<Object>): Array<Object> {
if (uri && uri.room && uri.hostname) {
const duration
= e.duration || /* legacy */ e.conferenceDuration;
= e.duration || /* legacy */ e.conferenceDuration || 0;
recentRoomDS.push({
baseURL: `${uri.protocol}//${uri.host}`,