rolling and calender toggle
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user