From 97cb8052a00d306775d93437f68b237a4978660f Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Wed, 20 Sep 2023 17:20:28 +0800 Subject: [PATCH] Fix typo comparing report.statusNum with CONST.REPORT.STATE_NUM --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 7c807112613c..2475dd40488c 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -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; } /**