Skip to content

Commit

Permalink
fix(signer): convert local strorage isEthSigner to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jan 31, 2022
1 parent 2ff0fa4 commit 187f2e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/signer/signer.service.ts
Expand Up @@ -51,8 +51,10 @@ export class SignerService {
// web app is responsible for clearing of isEthSigner on logout
if (executionEnvironment() === ExecutionEnvironment.BROWSER) {
const isEthSigner = localStorage.getItem(IS_ETH_SIGNER);
if (isEthSigner) {
this._isEthSigner = Boolean(isEthSigner);
if (isEthSigner === 'true') {
this._isEthSigner = true;
} else if (isEthSigner === 'false') {
this._isEthSigner = false;
}
}
/**
Expand Down

0 comments on commit 187f2e9

Please sign in to comment.