fix: Recent Transactions widget ignored the selected dashboard month

RecentTransactionsCard queried transactions without year/month filters,
so it always showed the latest 6 transactions globally instead of the
ones for the month picked in the MonthSelector. DashboardPage now
passes its year/month state down to the card, which forwards it to
useTransactions.
This commit is contained in:
ZProger
2026-08-16 21:51:32 +03:00
parent a8c6728860
commit c905cea84e
3 changed files with 9 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ export function DashboardPage() {
<div className="grid grid-cols-1 gap-4 lg:grid-cols-[1.4fr_1fr]">
<SpendingByCategoryCard items={data?.spending_by_category ?? []} />
<RecentTransactionsCard />
<RecentTransactionsCard year={year} month={month} />
</div>
</div>
);