diff --git a/src/components/expenses/ExpenseTitleSuggestions.tsx b/src/components/expenses/ExpenseTitleSuggestions.tsx index ec5110a..423ef86 100644 --- a/src/components/expenses/ExpenseTitleSuggestions.tsx +++ b/src/components/expenses/ExpenseTitleSuggestions.tsx @@ -1,5 +1,5 @@ -import React, { useEffect, useState } from 'react'; +import React from 'react'; import { Badge } from '@/components/ui/badge'; import { getPersonalizedTitleSuggestions } from '@/utils/userTitlePreferences'; @@ -14,15 +14,7 @@ const ExpenseTitleSuggestions: React.FC = ({ showSuggestions, onSuggestionClick }) => { - const [titleSuggestions, setTitleSuggestions] = useState([]); - - // 카테고리가 변경될 때마다 개인화된 제목 목록 업데이트 - useEffect(() => { - if (category) { - const suggestions = getPersonalizedTitleSuggestions(category); - setTitleSuggestions(suggestions); - } - }, [category]); + const titleSuggestions = getPersonalizedTitleSuggestions(category); if (!category || titleSuggestions.length === 0) { return null;