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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user