Skip to content

Commit fb17901

Browse files
committed
Bug fix
1 parent 55f1c1b commit fb17901

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libs/ReportUtils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ function isAwaitingFirstLevelApproval(report: OnyxEntry<Report>): boolean {
12801280
return false;
12811281
}
12821282

1283-
const submitsToAccountID = PolicyUtils.getSubmitToAccountID(getPolicy(report.reportID), report.ownerAccountID ?? -1);
1283+
const submitsToAccountID = PolicyUtils.getSubmitToAccountID(getPolicy(report.policyID), report.ownerAccountID ?? -1);
12841284

12851285
return isProcessingReport(report) && submitsToAccountID === report.managerID;
12861286
}
@@ -1747,7 +1747,9 @@ function canAddOrDeleteTransactions(moneyRequestReport: OnyxEntry<Report>): bool
17471747
}
17481748

17491749
if (PolicyUtils.isInstantSubmitEnabled(policy) && isProcessingReport(moneyRequestReport)) {
1750-
return isAwaitingFirstLevelApproval(moneyRequestReport);
1750+
const result = isAwaitingFirstLevelApproval(moneyRequestReport);
1751+
console.log('result of is awaiting', result);
1752+
return result;
17511753
}
17521754

17531755
if (isReportApproved(moneyRequestReport) || isSettled(moneyRequestReport?.reportID)) {

0 commit comments

Comments
 (0)