diff options
Diffstat (limited to 'src/state/index.ts')
-rw-r--r-- | src/state/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/index.ts b/src/state/index.ts index a8b95cc65..bc8a16949 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -25,7 +25,7 @@ export async function setupState() { data = (await storage.load(ROOT_STATE_STORAGE_KEY)) || {} rootStore.hydrate(data) } catch (e: any) { - rootStore.log.error('Failed to load state from storage', e.toString()) + rootStore.log.error('Failed to load state from storage', e) } rootStore.log.debug('Initial hydrate') @@ -36,7 +36,7 @@ export async function setupState() { return rootStore.fetchStateUpdate() }) .catch((e: any) => { - rootStore.log.warn('Failed initial connect', e.toString()) + rootStore.log.warn('Failed initial connect', e) }) // @ts-ignore .on() is correct -prf api.sessionManager.on('session', () => { |