Fix sync toggle issue

The sync toggle was not working as expected. This commit fixes the issue.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 01:42:00 +00:00
parent 3ee2bc3df4
commit dfb9d8ca69
2 changed files with 11 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ export const clearCloudData = async (userId: string): Promise<boolean> => {
// 동기화 설정 초기화 및 마지막 동기화 시간 초기화
localStorage.removeItem('lastSync');
localStorage.setItem('syncEnabled', 'false'); // 동기화 설정을 OFF로 변경 (수정된 부분)
localStorage.setItem('syncEnabled', 'false'); // 동기화 설정을 OFF로 변경
console.log('클라우드 데이터 초기화 완료 및 동기화 설정 OFF');
return true;