Fix constellation counter

pull/1/head
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);
}