Fix budget display issues

Addresses issues where budget data wasn't displaying correctly after input and ensures correct automatic calculation of daily/weekly budgets from monthly input.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-22 08:08:58 +00:00
parent d4afc2eedb
commit ae2a28efbb
4 changed files with 19 additions and 4 deletions

View File

@@ -86,6 +86,13 @@ export const useExtendedBudgetUpdate = (
}
handleBudgetGoalUpdate(type, amount);
// 성공 토스트 표시
const periodText = type === 'daily' ? '일일' : type === 'weekly' ? '주간' : '월간';
toast({
title: "예산 설정 완료",
description: `${periodText} 예산이 ${amount.toLocaleString()}원으로 설정되었습니다.`
});
}
}, [categoryBudgets, handleBudgetGoalUpdate, updateCategoryBudgets]);