Fix type errors in Analytics and Budget fetch params
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:
Carlos Escalante
2026-06-09 19:13:32 -06:00
parent 4a758b29a7
commit 3e56f1ca66
2 changed files with 4 additions and 4 deletions

View File

@@ -82,9 +82,9 @@ export default function Analytics() {
} }
Promise.all([ Promise.all([
api.get('/analytics/by-category', { params }), api.get<CategorySpending[]>('/analytics/by-category', { params }),
api.get('/analytics/monthly-trend'), api.get<MonthlyTrend[]>('/analytics/monthly-trend'),
api.get('/analytics/daily-spending', { params }), api.get<DailySpending[]>('/analytics/daily-spending', { params }),
]) ])
.then(([catRes, trendRes, dailyRes]) => { .then(([catRes, trendRes, dailyRes]) => {
setByCategory(catRes.data); setByCategory(catRes.data);

View File

@@ -44,7 +44,7 @@ export default function Budget() {
const fetchTransactions = useCallback(async () => { const fetchTransactions = useCallback(async () => {
setTxLoading(true); setTxLoading(true);
try { try {
const params: Record<string, unknown> = { const params: Record<string, string | number | boolean | undefined> = {
search: txSearch || undefined, search: txSearch || undefined,
limit: 200, limit: 200,
}; };