diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index ad63a6b6d93a..9cbc414bf582 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -358,7 +358,11 @@ function shouldReportActionBeVisible(reportAction, key) { * @returns {Boolean} */ function shouldReportActionBeVisibleAsLastAction(reportAction) { - if (!reportAction || !_.isEmpty(reportAction.errors)) { + if (!reportAction) { + return false; + } + + if (!_.isEmpty(reportAction.errors)) { return false; }