correctly scope const pub.id

This commit is contained in:
Brock Atkinson 2018-01-23 17:55:34 +08:00
parent 537f2ed23d
commit b9e1429dac

2
sea.js
View File

@ -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 })