Skip to content

Commit

Permalink
fix: prompter returning index instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Dec 30, 2020
1 parent a951c44 commit c1d5a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/prompter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Prompter implements IPrompter {
};

const result = await this.get([schema]);
return result.userAnswer;
return choices[result.userAnswer];
}

public async promptForDetailedChoice(
Expand All @@ -125,7 +125,7 @@ export class Prompter implements IPrompter {
};

const result = await this.get([schema]);
return result.userAnswer;
return inquirerChoices[result.userAnswer].value;
}

public async confirm(
Expand Down

0 comments on commit c1d5a27

Please sign in to comment.