File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1280,7 +1280,7 @@ function isAwaitingFirstLevelApproval(report: OnyxEntry<Report>): boolean {
1280
1280
return false ;
1281
1281
}
1282
1282
1283
- const submitsToAccountID = PolicyUtils . getSubmitToAccountID ( getPolicy ( report . reportID ) , report . ownerAccountID ?? - 1 ) ;
1283
+ const submitsToAccountID = PolicyUtils . getSubmitToAccountID ( getPolicy ( report . policyID ) , report . ownerAccountID ?? - 1 ) ;
1284
1284
1285
1285
return isProcessingReport ( report ) && submitsToAccountID === report . managerID ;
1286
1286
}
@@ -1747,7 +1747,9 @@ function canAddOrDeleteTransactions(moneyRequestReport: OnyxEntry<Report>): bool
1747
1747
}
1748
1748
1749
1749
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 ;
1751
1753
}
1752
1754
1753
1755
if ( isReportApproved ( moneyRequestReport ) || isSettled ( moneyRequestReport ?. reportID ) ) {
You can’t perform that action at this time.
0 commit comments