From fefa4b94c1dfd25e2c971d782cd1cc804879e400 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 8 Apr 2020 12:10:52 +0200 Subject: [PATCH] fix(cli): avoid error on create command (#2727) --- cli/src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/common.ts b/cli/src/common.ts index f8300ab04..defeb6428 100644 --- a/cli/src/common.ts +++ b/cli/src/common.ts @@ -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;