Fix budget calculation and storage

Correct budget calculation and storage issues for 교통 and 기타 categories, and ensure daily/weekly budgets are displayed correctly.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-22 07:42:46 +00:00
parent 09e29d57f3
commit 0d716d79d2
6 changed files with 35 additions and 17 deletions

View File

@@ -32,9 +32,9 @@ const CategoryBudgetInputs: React.FC<CategoryBudgetInputsProps> = ({
try {
const amount = parseInt(numericValue, 10) || 0;
markSingleCategoryBudgetAsModified(category, amount);
console.log(`[예산 추적] 카테고리 '${category}' 예산 변경 추적: ${amount}`);
console.log(`카테고리 '${category}' 예산 ${amount}으로 수정 완료, 타임스탬프: ${new Date().toISOString()}`);
} catch (error) {
console.error(`[예산 추적] 카테고리 '${category}' 예산 변경 추적 실패:`, error);
console.error(`카테고리 '${category}' 예산 변경 추적 실패:`, error);
}
// 사용자에게 시각적 피드백 제공