Revert sync behavior after data reset

The sync setting should be disabled after data reset.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 01:28:18 +00:00
parent b96e0877b7
commit 5f269040fd
4 changed files with 9 additions and 16 deletions

View File

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