From b9e1429dacb2d26aac084690e0e275091f6e1ced Mon Sep 17 00:00:00 2001 From: Brock Atkinson Date: Tue, 23 Jan 2018 17:55:34 +0800 Subject: [PATCH] correctly scope const pub.id --- sea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea.js b/sea.js index f6f3785e..6da883c3 100644 --- a/sea.js +++ b/sea.js @@ -557,8 +557,8 @@ if (authsettings.validity && typeof window !== 'undefined' && Gun.obj.has(p, 'pub') && Gun.obj.has(p, 'key')) { + const { pub: id } = p const importAndStoreKey = async () => { - const { pub: id } = p const key = importKey(p) await seaCallOnStorage((store) => { store.put({ id, key })