Skip to content

Commit

Permalink
lnc: fix stored data not loading when using a custom namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Jun 20, 2022
1 parent 08517c8 commit 92d58a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/credentialStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export default class LncCredentialStore implements CredentialStore {
* Constructs a new `LncCredentialStore` instance
*/
constructor(namespace?: string, password?: string) {
// load data stored in localStorage
this._load();

if (namespace) this.namespace = namespace;
if (password) this.password = password;

// load data stored in localStorage
this._load();
}

//
Expand Down

0 comments on commit 92d58a3

Please sign in to comment.