@@ -39,10 +39,10 @@ import {
39
39
hasUpdatedTotal ,
40
40
isAllowedToApproveExpenseReport ,
41
41
isExported as isExportedUtils ,
42
- isInvoiceReport ,
42
+ isInvoiceReport as isInvoiceReportUtil ,
43
43
isProcessingReport ,
44
44
isReportOwner ,
45
- isTrackExpenseReport ,
45
+ isTrackExpenseReport as isTrackExpenseReportUtil ,
46
46
navigateToDetailsPage ,
47
47
reportTransactionsSelector ,
48
48
} from '@libs/ReportUtils' ;
@@ -208,19 +208,19 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea
208
208
[ moneyRequestReport , chatReport , policy , transaction ] ,
209
209
) ;
210
210
211
- const isInvoice = isInvoiceReport ( moneyRequestReport ) ;
212
- const isTrackExpense = isTrackExpenseReport ( moneyRequestReport ) ;
211
+ const isInvoiceReport = isInvoiceReportUtil ( moneyRequestReport ) ;
212
+ const isTrackExpenseReport = isTrackExpenseReportUtil ( moneyRequestReport ) ;
213
213
214
214
const iouType = useMemo ( ( ) => {
215
- if ( isTrackExpense ) {
215
+ if ( isTrackExpenseReport ) {
216
216
return CONST . IOU . TYPE . TRACK ;
217
217
}
218
- if ( isInvoice ) {
218
+ if ( isInvoiceReport ) {
219
219
return CONST . IOU . TYPE . INVOICE ;
220
220
}
221
221
222
222
return CONST . IOU . TYPE . SUBMIT ;
223
- } , [ isTrackExpense , isInvoice ] ) ;
223
+ } , [ isTrackExpenseReport , isInvoiceReport ] ) ;
224
224
225
225
const [ isDownloadErrorModalVisible , setIsDownloadErrorModalVisible ] = useState ( false ) ;
226
226
@@ -290,15 +290,15 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea
290
290
setIsNoDelegateAccessMenuVisible ( true ) ;
291
291
} else if ( isAnyTransactionOnHold ) {
292
292
setIsHoldMenuVisible ( true ) ;
293
- } else if ( isInvoice ) {
293
+ } else if ( isInvoiceReport ) {
294
294
startAnimation ( ) ;
295
295
payInvoice ( type , chatReport , moneyRequestReport , payAsBusiness , methodID , paymentMethod ) ;
296
296
} else {
297
297
startAnimation ( ) ;
298
298
payMoneyRequest ( type , chatReport , moneyRequestReport , true ) ;
299
299
}
300
300
} ,
301
- [ chatReport , isAnyTransactionOnHold , isDelegateAccessRestricted , isInvoice , moneyRequestReport , startAnimation ] ,
301
+ [ chatReport , isAnyTransactionOnHold , isDelegateAccessRestricted , isInvoiceReport , moneyRequestReport , startAnimation ] ,
302
302
) ;
303
303
304
304
const confirmApproval = ( ) => {
0 commit comments