Skip to content

Commit

Permalink
Fix account prompt returning undefined (#5310)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullSoldier authored Aug 19, 2024
1 parent 00e7750 commit f41ef7c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ironfish-cli/src/ui/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ export async function listPrompt<T>(
values.sort((a, b) => a.name.localeCompare(b.name))
}

const selection = await inquirer.prompt<{
name: string
value: T
}>([
const selection = await inquirer.prompt<{ prompt: T }>([
{
name: 'prompt',
message: message,
Expand All @@ -80,5 +77,5 @@ export async function listPrompt<T>(
},
])

return selection.value
return selection.prompt
}

0 comments on commit f41ef7c

Please sign in to comment.