Skip to content

Commit

Permalink
fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi committed Dec 29, 2018
1 parent 74c13dc commit 4b2977d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prompts/create-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function (args, options) {
validate(input) {
if (input !== '') {
name = input;
return name;
return true;
}

return 'Please enter a name for your project';
Expand Down Expand Up @@ -84,8 +84,8 @@ module.exports = function (args, options) {
name: 'web-component',
message: 'What is your web component tag name?',
suffix: ':',
default(answers) {
return dasherize(answers.name);
default() {
return dasherize(name);
},
validate(input) {
if (input !== '') {
Expand Down

0 comments on commit 4b2977d

Please sign in to comment.