✌️
This commit is contained in:
parent
019529d76c
commit
9e6d13ce46
4 changed files with 7 additions and 5 deletions
|
|
@ -55,7 +55,7 @@ export class Storage<T extends StateDef> {
|
|||
return new Promise(async (resolve, reject) => {
|
||||
await this.migrate();
|
||||
|
||||
const deviceState: State<T> = await get(this.deviceStateKeyName);
|
||||
const deviceState: State<T> = await get(this.deviceStateKeyName) || {};
|
||||
const deviceAccountState = $i ? await get(this.deviceAccountStateKeyName) || {} : {};
|
||||
const registryCache = $i ? await get(this.registryCacheKeyName) || {} : {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue