Skip to content

Commit

Permalink
fix: remove gaia call when unlocking wallet
Browse files Browse the repository at this point in the history
closes #1877
  • Loading branch information
beguene authored and kyranjamie committed Dec 20, 2021
1 parent 1de03f7 commit 837cef7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/background/vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { getHasSetPassword, hasSetPasswordIdentifier } from '@common/storage';
import { getDecryptedWalletDetails } from '@background/wallet/unlock-wallet';
import { saveWalletConfigLocally } from '@common/wallet/wallet-config-helper';
import { setToLocalstorageIfDefined } from '@common/storage';
import { getHasSetPassword, hasSetPasswordIdentifier } from '@common/storage';

// In-memory (background) wallet instance
export interface InMemoryVault {
Expand Down
8 changes: 0 additions & 8 deletions src/common/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,3 @@ export function setToLocalstorageIfDefined(storageKey: string, value?: string) {
localStorage.setItem(storageKey, value);
}
}

export function getHasSetPassword() {
const persisted = localStorage.getItem(hasSetPasswordIdentifier);
if (persisted !== null) {
return JSON.parse(persisted);
}
return false;
}

0 comments on commit 837cef7

Please sign in to comment.