Skip to content

Commit

Permalink
🐛 FIX: Minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
riverrun46 committed Sep 26, 2023
1 parent 2e98582 commit 2ff853b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function lock() {
}

export async function isLocked() {
return await storageManager.get('locked', false)
return await storageManager.get('locked', { defaultValue: false })
}

export async function unlock(password: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function deleteStorage(key: string): Promise<void> {
}

type Storage = {
get: (key: string, defaultValue?: any) => Promise<any>
get: (key: string, option?: { defaultValue?: unknown; isParse?: boolean }) => Promise<any>
set: (key: string, value: any) => Promise<void>
delete: (key: string) => Promise<void>
}
Expand Down

0 comments on commit 2ff853b

Please sign in to comment.