mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 17:08:47 +02:00
Fix type errors in Analytics and Budget fetch params
Some checks failed
Deploy to VPS / deploy (push) Failing after 38s
Some checks failed
Deploy to VPS / deploy (push) Failing after 38s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -82,9 +82,9 @@ export default function Analytics() {
|
||||
}
|
||||
|
||||
Promise.all([
|
||||
api.get('/analytics/by-category', { params }),
|
||||
api.get('/analytics/monthly-trend'),
|
||||
api.get('/analytics/daily-spending', { params }),
|
||||
api.get<CategorySpending[]>('/analytics/by-category', { params }),
|
||||
api.get<MonthlyTrend[]>('/analytics/monthly-trend'),
|
||||
api.get<DailySpending[]>('/analytics/daily-spending', { params }),
|
||||
])
|
||||
.then(([catRes, trendRes, dailyRes]) => {
|
||||
setByCategory(catRes.data);
|
||||
|
||||
Reference in New Issue
Block a user