Fix constellation counter

This commit is contained in:
Made Baruna 2021-05-22 13:01:17 +08:00
parent 17fb18763a
commit bb4b32a4c9
No known key found for this signature in database
GPG key ID: 5AA5DA16AA5DCEAD
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@
}
updateCollectedCharacters = true;
} else {
collectedCharacters = defaultChars;
collectedCharacters = {...defaultChars};
}
const collectablesNeedUpdateData = await readSave(`${prefix}collectables-updated`);
if (collectablesNeedUpdateData === null || collectablesNeedUpdateData === true) {

View file

@ -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);
}