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