File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ import {
155155 isDraftReport ,
156156 isExpenseReport ,
157157 isIndividualInvoiceRoom ,
158- isInvoiceReport ,
159158 isInvoiceReport as isInvoiceReportReportUtils ,
160159 isInvoiceRoom ,
161160 isMoneyRequestReport as isMoneyRequestReportReportUtils ,
@@ -4307,10 +4306,11 @@ function getUpdateMoneyRequestParams(
43074306 }
43084307 const hasModifiedComment = 'comment' in transactionChanges ;
43094308
4309+ const isInvoice = isInvoiceReportReportUtils ( iouReport ) ;
43104310 if (
43114311 policy &&
43124312 isPaidGroupPolicy ( policy ) &&
4313- ! isInvoiceReport ( iouReport ) &&
4313+ ! isInvoice &&
43144314 updatedTransaction &&
43154315 ( hasModifiedTag || hasModifiedCategory || hasModifiedComment || hasModifiedDistanceRate || hasModifiedAmount || hasModifiedCreated )
43164316 ) {
@@ -4322,7 +4322,7 @@ function getUpdateMoneyRequestParams(
43224322 policyTagList ?? { } ,
43234323 policyCategories ?? { } ,
43244324 hasDependentTags ( policy , policyTagList ?? { } ) ,
4325- isInvoiceReportReportUtils ( iouReport ) ,
4325+ isInvoice ,
43264326 ) ;
43274327 optimisticData . push ( violationsOnyxData ) ;
43284328 failureData . push ( {
You can’t perform that action at this time.
0 commit comments