Skip to content

Commit

Permalink
move method
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Feb 6, 2025
1 parent 6963870 commit bb29b12
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1167,13 +1167,6 @@ function isCompletedTaskReport(report: OnyxEntry<Report>): boolean {
return isTaskReport(report) && report?.stateNum === CONST.REPORT.STATE_NUM.APPROVED && report?.statusNum === CONST.REPORT.STATUS_NUM.APPROVED;
}

/**
* Checks if the current user is the manager of the supplied report
*/
function isReportManager(report: OnyxEntry<Report>): boolean {
return !!(report && report.managerID === currentUserAccountID);
}

/**
* Checks if the report with supplied ID has been approved
*/
Expand All @@ -1188,6 +1181,13 @@ function isReportIDApproved(reportID: string | undefined) {
return isReportApproved({report});
}

/**
* Checks if the current user is the manager of the supplied report
*/
function isReportManager(report: OnyxEntry<Report>): boolean {
return !!(report && report.managerID === currentUserAccountID);
}

/**
* Checks if the supplied report has been approved
*/
Expand Down

0 comments on commit bb29b12

Please sign in to comment.