Retain sync setting on reset

After data reset, the sync setting should remain in its previous state (On or Off) instead of always defaulting to Off.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 01:21:54 +00:00
parent a6c751941c
commit a4533aea70
5 changed files with 51 additions and 13 deletions

View File

@@ -54,8 +54,9 @@ export const clearCloudData = async (userId: string): Promise<boolean> => {
}
// 동기화 설정 초기화 및 마지막 동기화 시간 초기화
// 변경: 동기화 설정을 비활성화하지 않고 마지막 동기화 시간만 초기화
localStorage.removeItem('lastSync');
localStorage.setItem('syncEnabled', 'false');
// localStorage.setItem('syncEnabled', 'false'); 이 줄 제거
console.log('클라우드 데이터 초기화 완료');
return true;