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:
@@ -1,7 +1,7 @@
|
||||
|
||||
import { useCallback } from 'react';
|
||||
import { Transaction } from '../types';
|
||||
import { calculateCategorySpending } from '../budgetUtils';
|
||||
import { calculateCategorySpending } from '../utils/categoryUtils';
|
||||
|
||||
// 카테고리별 지출 계산 훅
|
||||
export const useCategorySpending = (
|
||||
|
||||
Reference in New Issue
Block a user