Skip to content

Commit

Permalink
fix: circular structure error on create new key (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeart authored Aug 27, 2023
1 parent 5554a0b commit 6aedf8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/manipulations/newKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function NewKey(keypath?: string) {

try {
keypath = await window.showInputBox({
value: keypath || '',
value: typeof keypath === 'string' ? keypath : '',
prompt: i18n.t('prompt.new_key_path'),
ignoreFocusOut: true,
})
Expand Down Expand Up @@ -61,7 +61,7 @@ export async function NewKey(keypath?: string) {
})
}
}
catch (err) {
catch (err: any) {
Log.error(err.toString())
}
}

0 comments on commit 6aedf8f

Please sign in to comment.