Skip to content

Commit e09a423

Browse files
committed
fix violations doesn't update when transactions collcetion is updated
1 parent 21e6224 commit e09a423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useReportWithTransactionsAndViolations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function useReportWithTransactionsAndViolations(reportID?: string): [OnyxEntry<R
2020
transactions?.some((transaction) => transaction.transactionID === key.replace(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS, '')),
2121
),
2222
),
23-
});
23+
}, [transactions]);
2424
return [report, transactions ?? DEFAULT_TRANSACTIONS, violations ?? DEFAULT_VIOLATIONS];
2525
}
2626

0 commit comments

Comments
 (0)