Ensure sync is disabled

The sync setting was not consistently being disabled in certain scenarios. This change ensures that the sync setting is properly disabled when expected.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 01:48:38 +00:00
parent dfb9d8ca69
commit 043db23836
5 changed files with 59 additions and 25 deletions

View File

@@ -16,6 +16,11 @@ const DataResetSection = () => {
const handleResetAllData = async () => {
await resetAllData();
setIsResetDialogOpen(false);
// 초기화 후 페이지 새로고침
setTimeout(() => {
window.location.reload();
}, 1000);
};
return (
@@ -29,9 +34,7 @@ const DataResetSection = () => {
<h3 className="font-medium"> </h3>
<p className="text-xs text-gray-500 mt-1">
{user
? syncEnabled
? "로컬 및 클라우드의 모든 예산, 지출 내역이 초기화됩니다. 동기화 설정은 유지됩니다."
: "로컬 및 클라우드의 모든 예산, 지출 내역이 초기화됩니다."
? "로컬 및 클라우드의 모든 예산, 지출 내역이 초기화됩니다. 동기화 설정은 비활성화됩니다."
: "모든 예산, 지출 내역, 설정이 초기화됩니다."}
</p>
</div>