From 61024b6d86c2055fbe5f17b0d538d7c722e4273f Mon Sep 17 00:00:00 2001 From: Jules Rosser Date: Mon, 6 Mar 2023 15:14:21 +0000 Subject: [PATCH] use correct equal check syntax --- src/libs/ReportActionsUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportActionsUtils.js b/src/libs/ReportActionsUtils.js index d8baff3da2ab..cb7ec4df6c2c 100644 --- a/src/libs/ReportActionsUtils.js +++ b/src/libs/ReportActionsUtils.js @@ -83,7 +83,7 @@ function getSortedReportActions(reportActions, shouldSortInDescendingOrder = fal */ function getMostRecentIOURequestActionID(reportActions) { const iouRequestActions = _.filter(reportActions, action => action.originalMessage - && action.originalMessage.type && action.originalMessage.type == CONST.IOU.REPORT_ACTION_TYPE.CREATE); + && action.originalMessage.type && action.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE); if (_.isEmpty(iouRequestActions)) { return null;