Skip to content

Commit

Permalink
Fix refresh (#41)
Browse files Browse the repository at this point in the history
* fixed refresh not prompting password
  • Loading branch information
andrewlee348 authored Nov 26, 2024
1 parent e3c2072 commit 6d2a61e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stores/AuthStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export class AuthStore {
async loadAccount(password?: string) {
const db = await getIndexedDB(IndexedDBKey.SECURITY)
const encryptedMnemonic = await db.get(IndexedDBKey.SECURITY, 'mnemonic')
if (encryptedMnemonic) {
this.isLoadingAccount.set(true)
}
var key = await db.get(IndexedDBKey.SECURITY, 'key')

let mnemonic: { wallet: string; mnemonic: string } | undefined = undefined
Expand Down

0 comments on commit 6d2a61e

Please sign in to comment.