From a464a5ce6498a62dcc93bb6a28f9209c265d5505 Mon Sep 17 00:00:00 2001 From: Aldo Canepa Date: Mon, 12 Dec 2022 13:06:24 -0800 Subject: [PATCH] Report can be a {}, improve check for emptyness/falsey --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 58c23bb46d66..e8b6c65aaa3f 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -436,7 +436,7 @@ function getDefaultAvatar(login = '') { * @returns {Array<*>} */ function getIcons(report, personalDetails, policies, defaultIcon = null) { - if (!report) { + if (_.isEmpty(report)) { return [defaultIcon || getDefaultAvatar()]; } if (isArchivedRoom(report)) {