Fix type error in HomeContent

The `getCategorySpending` function was not returning an array, causing a type error when used with the `some` method in the `HomeContent` component. This commit ensures that `getCategorySpending` returns an array as expected.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-23 10:26:51 +00:00
parent 606ac2f96a
commit 8168d4b645
3 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { useCallback } from 'react';
import { Transaction } from '../types';
import { calculateCategorySpending } from '../budgetUtils';
import { calculateCategorySpending } from '../utils/categoryUtils';
// 카테고리별 지출 계산 훅
export const useCategorySpending = (