Skip to content

Commit

Permalink
fixed refresh not prompting password
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 26, 2024
1 parent 9879d39 commit 4e22c56
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 4e22c56

Please sign in to comment.