Skip to content

Commit c1d5a27

Browse files
committed
fix: prompter returning index instead of value
1 parent a951c44 commit c1d5a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/prompter.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class Prompter implements IPrompter {
102102
};
103103

104104
const result = await this.get([schema]);
105-
return result.userAnswer;
105+
return choices[result.userAnswer];
106106
}
107107

108108
public async promptForDetailedChoice(
@@ -125,7 +125,7 @@ export class Prompter implements IPrompter {
125125
};
126126

127127
const result = await this.get([schema]);
128-
return result.userAnswer;
128+
return inquirerChoices[result.userAnswer].value;
129129
}
130130

131131
public async confirm(

0 commit comments

Comments
 (0)