Skip to content

Commit

Permalink
pass current answer to getAnswer method to ensure the correct one is …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
doowb committed May 31, 2018
1 parent e7c64ea commit 21dbde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Prompt.extend(Confirm);
*/

Confirm.prototype.renderAnswer = function() {
return cyan(this.getAnswer() ? 'Yes' : 'No');
return cyan(this.getAnswer(this.answer) ? 'Yes' : 'No');
};

/**
Expand Down

0 comments on commit 21dbde4

Please sign in to comment.