Fix data reset and deletion issues

- Ensure complete cloud data deletion during data reset.
- Resolve app freeze issue when deleting transactions on the transaction history page.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-17 23:01:50 +00:00
parent 88cc1af139
commit d3e8119f24
6 changed files with 184 additions and 56 deletions

View File

@@ -52,6 +52,10 @@ export const clearCloudData = async (userId: string): Promise<boolean> => {
} catch (e) {
console.log('category_budgets 테이블이 없거나 삭제 중 오류 발생:', e);
}
// 동기화 설정 초기화 및 마지막 동기화 시간 초기화
localStorage.removeItem('lastSync');
localStorage.setItem('syncEnabled', 'false');
console.log('클라우드 데이터 초기화 완료');
return true;