File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6730,6 +6730,25 @@ function getPayMoneyRequestParams(
6730
6730
} ,
6731
6731
} ) ;
6732
6732
}
6733
+
6734
+ const optimisticTransactionViolations : OnyxUpdate [ ] = reportTransactions . map ( ( { transactionID} ) => {
6735
+ return {
6736
+ onyxMethod : Onyx . METHOD . MERGE ,
6737
+ key : `${ ONYXKEYS . COLLECTION . TRANSACTION_VIOLATIONS } ${ transactionID } ` ,
6738
+ value : null ,
6739
+ } ;
6740
+ } ) ;
6741
+ optimisticData . push ( ...optimisticTransactionViolations ) ;
6742
+
6743
+ const failureTransactionViolations : OnyxUpdate [ ] = reportTransactions . map ( ( { transactionID} ) => {
6744
+ const violations = allTransactionViolations [ `${ ONYXKEYS . COLLECTION . TRANSACTION_VIOLATIONS } ${ transactionID } ` ] ?? [ ] ;
6745
+ return {
6746
+ onyxMethod : Onyx . METHOD . MERGE ,
6747
+ key : `${ ONYXKEYS . COLLECTION . TRANSACTION_VIOLATIONS } ${ transactionID } ` ,
6748
+ value : violations ,
6749
+ } ;
6750
+ } ) ;
6751
+ failureData . push ( ...failureTransactionViolations ) ;
6733
6752
}
6734
6753
6735
6754
let optimisticHoldReportID ;
You can’t perform that action at this time.
0 commit comments