Skip to content

Commit

Permalink
Fix #845 - Fix broken asynchronous validation
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Dec 15, 2019
1 parent 904e473 commit af16d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inquirer/lib/prompts/base.js
Expand Up @@ -95,7 +95,7 @@ class Prompt {
filteredValue =>
validate(filteredValue, self.answers).then(
isValid => ({ isValid: isValid, value: filteredValue }),
err => ({ isValid: err })
err => ({ isValid: err, value: filteredValue })
),
err => ({ isValid: err })
)
Expand Down

0 comments on commit af16d5b

Please sign in to comment.