feat: integrate React Query for improved data fetching and state management across banking and transactions components
This commit is contained in:
@@ -190,6 +190,7 @@ export default function StatisticsPage() {
|
||||
const stats = useMemo(() => {
|
||||
if (!data) return null;
|
||||
|
||||
// Pre-filter transactions once
|
||||
let transactions = data.transactions.filter((t) => {
|
||||
const transactionDate = new Date(t.date);
|
||||
if (endDate) {
|
||||
|
||||
Reference in New Issue
Block a user