From 037e7f59b07d24bb5061f1a220a8095c3284ddc2 Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Wed, 28 Feb 2018 17:16:24 -0600 Subject: [PATCH] [RN] Fix a TypeError when invoking humanize() on undefined --- react/features/recent-list/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/recent-list/functions.js b/react/features/recent-list/functions.js index bc0adb1be..876c751df 100644 --- a/react/features/recent-list/functions.js +++ b/react/features/recent-list/functions.js @@ -50,7 +50,7 @@ export function getRecentRooms(list: Array): Array { 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}`,