Skip to content

Commit

Permalink
Fix input prompt final answer formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Sep 21, 2019
1 parent c172c75 commit 7cf9d99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/input/index.js
Expand Up @@ -45,8 +45,9 @@ module.exports = createPrompt((config, done) => {
let formattedValue = value;
if (typeof config.transformer === 'function') {
formattedValue = config.transformer(value, { isFinal: status === 'done' });
} else if (status === 'done') {
formattedValue = chalk.cyan(value);
}
if (status === 'done') {
formattedValue = chalk.cyan(formattedValue);
}

let defaultStr = '';
Expand Down

0 comments on commit 7cf9d99

Please sign in to comment.