diff --git a/components/webln/lnc.js b/components/webln/lnc.js index 7d2f69fb..1ffb02bd 100644 --- a/components/webln/lnc.js +++ b/components/webln/lnc.js @@ -16,8 +16,8 @@ const mutex = new Mutex() async function getLNC ({ me }) { if (window.lnc) return window.lnc // backwards compatibility: migrate to new storage key - if (me) migrateLocalStorage('lnc-web:default', `lnc-web:${me.id}`) - window.lnc = new LNC({ namespace: me?.id }) + if (me) migrateLocalStorage('lnc-web:default', `lnc-web:stacker:${me.id}`) + window.lnc = new LNC({ namespace: me?.id ? `stacker:${me.id}` : undefined }) return window.lnc }