Skip to content

Commit

Permalink
use stateNum to determine report state
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jul 26, 2023
1 parent 0d876a4 commit ee5d96e
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 @@ -236,7 +236,7 @@ function canEditReportAction(reportAction) {
*/
function isSettled(reportID) {
const report = lodashGet(allReports, `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, {});
return !_.isEmpty(report) && !report.hasOutstandingIOU && !report.isWaitingOnBankAccount;
return !_.isEmpty(report) && !report.isWaitingOnBankAccount && report.stateNum > CONST.REPORT.STATE_NUM.PROCESSING;
}

/**
Expand Down

0 comments on commit ee5d96e

Please sign in to comment.