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)) {