Skip to content

Commit

Permalink
Merge pull request #27844 from Expensify/youssef_fix_isReportApproved
Browse files Browse the repository at this point in the history
[CP Staging] Fix typo comparing report.statusNum with CONST.REPORT.STATE_NUM
  • Loading branch information
marcochavezf authored Sep 20, 2023
2 parents b028686 + 97cb805 commit efacd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function isReportManager(report) {
* @returns {Boolean}
*/
function isReportApproved(report) {
return report && report.statusNum === CONST.REPORT.STATE_NUM.SUBMITTED && report.statusNum === CONST.REPORT.STATUS.APPROVED;
return report && report.stateNum === CONST.REPORT.STATE_NUM.SUBMITTED && report.statusNum === CONST.REPORT.STATUS.APPROVED;
}

/**
Expand Down

0 comments on commit efacd6c

Please sign in to comment.