File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2080,7 +2080,7 @@ function buildOnyxDataForMoneyRequest(moneyRequestParams: BuildOnyxDataForMoneyR
20802080 }
20812081
20822082 // We don't need to compute violations unless we're on a paid policy
2083- if (!policy || !isPaidGroupPolicy(policy)) {
2083+ if (!policy || !isPaidGroupPolicy(policy) || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID ) {
20842084 return [optimisticData, successData, failureData];
20852085 }
20862086
@@ -2507,11 +2507,6 @@ function buildOnyxDataForInvoice(invoiceParams: BuildOnyxDataForInvoiceParams):
25072507 }
25082508 }
25092509
2510- // We don't need to compute violations unless we're on a paid policy
2511- if (!policyParams.policy || !isPaidGroupPolicy(policyParams.policy)) {
2512- return [optimisticData, successData, failureData];
2513- }
2514-
25152510 return [optimisticData, successData, failureData];
25162511}
25172512
@@ -2941,7 +2936,7 @@ function buildOnyxDataForTrackExpense({
29412936 }
29422937
29432938 // We don't need to compute violations unless we're on a paid policy
2944- if (!policy || !isPaidGroupPolicy(policy)) {
2939+ if (!policy || !isPaidGroupPolicy(policy) || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID ) {
29452940 return [optimisticData, successData, failureData];
29462941 }
29472942
You can’t perform that action at this time.
0 commit comments