From e5b8cc928ff91b16e51278ce9e2f738f227b8098 Mon Sep 17 00:00:00 2001 From: mhelander Date: Mon, 29 Jan 2018 22:18:31 +0200 Subject: [PATCH] Refactoring mistake fixed from object decomposition in authrecall --- sea.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sea.js b/sea.js index 17296bd8..f7c96c3a 100644 --- a/sea.js +++ b/sea.js @@ -499,7 +499,8 @@ let err // Yes, then attempt to log into each one until we find ours! // (if two users have the same username AND the same password... that would be bad) - const [ { key, at, proof } ] = await Promise.all(aliases.filter(({ at: { put } = {} }) => !!put) + const [ { key, at, proof } = {} ] = await Promise + .all(aliases.filter(({ at: { put } = {} }) => !!put) .map(async ({ at, pub }) => { const readStorageData = async () => { const props = parseProps(await seaRead(remember, pub, true))