Skip to content

Commit

Permalink
fix: prompter returning undefined instead of value (#5457)
Browse files Browse the repository at this point in the history
  • Loading branch information
janoshrubos authored Jan 4, 2021
1 parent 5d3f1d6 commit 4cc4bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/prompter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4cc4bca

Please sign in to comment.