rolling and calender toggle

This commit is contained in:
2026-04-06 18:27:05 +05:30
parent 787324260c
commit fc88703a38
3 changed files with 133 additions and 108 deletions

View File

@@ -56,8 +56,8 @@ export default function Dashboard() {
] = await Promise.all([
fetchLatestTransactions("expense"),
fetchLatestTransactions("income"),
fetchAggregatedExpenses(period),
fetchAggregatedIncome(period)
fetchAggregatedExpenses(),
fetchAggregatedIncome()
]);
setLatest({
@@ -79,7 +79,7 @@ export default function Dashboard() {
}
loadData();
}, [period]);
}, []);
const currentData = aggregated[mode];
const currentLatest = latest[mode];