Refactor category budget setting
The category budget setting is now based on the monthly budget amount, which is then divided into daily and weekly budgets.
This commit is contained in:
@@ -65,7 +65,7 @@ export const loadBudgetFromStorage = (): number => {
|
||||
return 0;
|
||||
};
|
||||
|
||||
// 모든 데이터 완전히 초기화
|
||||
// 모든 데이터 완전히 초기화 - 성능 최적화
|
||||
export const resetAllStorageData = (): void => {
|
||||
console.log('완전 초기화 시작 - resetAllStorageData');
|
||||
|
||||
@@ -80,7 +80,7 @@ export const resetAllStorageData = (): void => {
|
||||
|
||||
// 모든 Storage 키 목록 (로그인 관련 항목 제외)
|
||||
const keysToRemove = [
|
||||
'transactions',
|
||||
'transactions',
|
||||
'budget',
|
||||
'monthlyExpenses',
|
||||
'budgetData',
|
||||
@@ -100,7 +100,7 @@ export const resetAllStorageData = (): void => {
|
||||
'budgetHistory',
|
||||
'transactionHistory',
|
||||
'lastSync',
|
||||
'syncEnabled', // 동기화 설정도 초기화
|
||||
'syncEnabled'
|
||||
];
|
||||
|
||||
// 키 동시에 삭제 (성능 최적화)
|
||||
|
||||
Reference in New Issue
Block a user