Skip to content

Commit

Permalink
fix(cli): avoid error on create command (#2727)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Apr 8, 2020
1 parent e010a28 commit fefa4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export async function getName(config: Config, name: string) {
const answers = await inquirer.prompt([{
type: 'input',
name: 'name',
default: config.app.appName ? config.app.appName : config.app.package.name ? config.app.package.name : 'App',
default: config.app.appName ? config.app.appName : config.app.package && config.app.package.name ? config.app.package.name : 'App',
message: `App name`
}]);
return answers.name;
Expand Down

0 comments on commit fefa4b9

Please sign in to comment.