Fix budget calculation error
Corrected an issue where the total monthly budget was incorrectly calculated and displayed as a weekly budget.
This commit is contained in:
@@ -17,8 +17,11 @@ export const useExtendedBudgetUpdate = (
|
||||
) => {
|
||||
console.log('확장 예산 업데이트 시작:', type, amount, newCategoryBudgets);
|
||||
|
||||
// 기본 예산 목표 업데이트
|
||||
handleBudgetUpdate(type, amount);
|
||||
// 카테고리 예산 입력 폼에서 호출된 경우, type이 없으면 monthly로 설정
|
||||
const budgetType = type || 'monthly';
|
||||
|
||||
// 기본 예산 목표 업데이트 - 항상 월간 예산 우선
|
||||
handleBudgetUpdate(budgetType, amount);
|
||||
|
||||
// 카테고리 예산 업데이트 (제공된 경우)
|
||||
if (newCategoryBudgets) {
|
||||
|
||||
Reference in New Issue
Block a user