mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 13:28:46 +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);
|
||||
|
||||
@@ -44,7 +44,7 @@ export default function Budget() {
|
||||
const fetchTransactions = useCallback(async () => {
|
||||
setTxLoading(true);
|
||||
try {
|
||||
const params: Record<string, unknown> = {
|
||||
const params: Record<string, string | number | boolean | undefined> = {
|
||||
search: txSearch || undefined,
|
||||
limit: 200,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user