From 812f4759bed7e79c31a199e692c9eceaabd2f028 Mon Sep 17 00:00:00 2001 From: janoshrubos Date: Mon, 4 Jan 2021 18:33:16 +0100 Subject: [PATCH] fix: prompter returning undefined instead of value --- lib/common/prompter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/prompter.ts b/lib/common/prompter.ts index 13fa0980fa..ca579206f3 100644 --- a/lib/common/prompter.ts +++ b/lib/common/prompter.ts @@ -125,7 +125,7 @@ export class Prompter implements IPrompter { }; const result = await this.get([schema]); - return inquirerChoices[result.userAnswer].value; + return result.userAnswer; } public async confirm(