File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7777,8 +7777,8 @@ function hasMissingInvoiceBankAccount(iouReportID: string): boolean {
7777
7777
return invoiceReport ?. ownerAccountID === currentUserAccountID && isEmptyObject ( getPolicy ( invoiceReport ?. policyID ) ?. invoice ?. bankAccount ?? { } ) && isSettled ( iouReportID ) ;
7778
7778
}
7779
7779
7780
- function isSubmittedExpenseReportManagerWithoutParentAccess ( report : OnyxEntry < Report > ) {
7781
- return isExpenseReport ( report ) && report ?. hasParentAccess === false && report ?. managerID === currentUserAccountID && isProcessingReport ( report ) ;
7780
+ function isExpenseReportManagerWithoutParentAccess ( report : OnyxEntry < Report > ) {
7781
+ return isExpenseReport ( report ) && report ?. hasParentAccess === false && report ?. managerID === currentUserAccountID ;
7782
7782
}
7783
7783
7784
7784
export {
@@ -7977,7 +7977,7 @@ export {
7977
7977
isEmptyReport ,
7978
7978
isRootGroupChat ,
7979
7979
isExpenseReport ,
7980
- isSubmittedExpenseReportManagerWithoutParentAccess ,
7980
+ isExpenseReportManagerWithoutParentAccess ,
7981
7981
isExpenseRequest ,
7982
7982
isExpensifyOnlyParticipantInReport ,
7983
7983
isGroupChat ,
Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ function getOrderedReportIDs(
129
129
return ;
130
130
}
131
131
const isSystemChat = ReportUtils . isSystemChat ( report ) ;
132
- const isSubmittedExpenseReportManagerWithoutParentAccess = ReportUtils . isSubmittedExpenseReportManagerWithoutParentAccess ( report ) ;
132
+ const isExpenseReportManagerWithoutParentAccess = ReportUtils . isExpenseReportManagerWithoutParentAccess ( report ) ;
133
133
const shouldOverrideHidden =
134
134
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
135
- hasValidDraftComment ( report . reportID ) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || report . isPinned || isSubmittedExpenseReportManagerWithoutParentAccess ;
135
+ hasValidDraftComment ( report . reportID ) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || report . isPinned || isExpenseReportManagerWithoutParentAccess ;
136
136
if ( isHidden && ! shouldOverrideHidden ) {
137
137
return ;
138
138
}
You can’t perform that action at this time.
0 commit comments