Skip to content

Commit

Permalink
use correct equal check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Julesssss committed Mar 6, 2023
1 parent 1435ec3 commit 61024b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61024b6

Please sign in to comment.