Skip to content

Commit f41ef7c

Browse files
authored
Fix account prompt returning undefined (#5310)
1 parent 00e7750 commit f41ef7c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ironfish-cli/src/ui/prompt.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ export async function listPrompt<T>(
6868
values.sort((a, b) => a.name.localeCompare(b.name))
6969
}
7070

71-
const selection = await inquirer.prompt<{
72-
name: string
73-
value: T
74-
}>([
71+
const selection = await inquirer.prompt<{ prompt: T }>([
7572
{
7673
name: 'prompt',
7774
message: message,
@@ -80,5 +77,5 @@ export async function listPrompt<T>(
8077
},
8178
])
8279

83-
return selection.value
80+
return selection.prompt
8481
}

0 commit comments

Comments
 (0)