Revert sync behavior after data reset
The sync setting should be disabled after data reset.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user