From bb4b32a4c93f13f87883e225fda1abcee71088a4 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 22 May 2021 13:01:17 +0800 Subject: [PATCH] Fix constellation counter --- src/routes/wish/_summary.svelte | 2 +- src/stores/saveManager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/wish/_summary.svelte b/src/routes/wish/_summary.svelte index 41d05cda..aeac6468 100644 --- a/src/routes/wish/_summary.svelte +++ b/src/routes/wish/_summary.svelte @@ -94,7 +94,7 @@ } updateCollectedCharacters = true; } else { - collectedCharacters = defaultChars; + collectedCharacters = {...defaultChars}; } const collectablesNeedUpdateData = await readSave(`${prefix}collectables-updated`); if (collectablesNeedUpdateData === null || collectablesNeedUpdateData === true) { diff --git a/src/stores/saveManager.js b/src/stores/saveManager.js index 9e5b67ad..8ae08ab9 100644 --- a/src/stores/saveManager.js +++ b/src/stores/saveManager.js @@ -133,7 +133,7 @@ export const getLocalSaveJson = async () => { }; export const updateSave = async (key, data, isFromRemote) => { - console.log('updateSave', key, isFromRemote); + console.log('updateSave', key, isFromRemote, data); if (!isFromRemote) { localModified.set(true); }