We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 035faf7 commit 4142ca9Copy full SHA for 4142ca9
lib/routes/home.js
@@ -3,6 +3,7 @@ const _ = require('lodash');
3
const chalk = require('chalk');
4
const fullname = require('fullname');
5
const inquirer = require('inquirer');
6
+const isString = require('lodash').isString;
7
const namespaceToName = require('yeoman-environment').namespaceToName;
8
const globalConfigHasContent = require('../utils/global-config').hasContent;
9
@@ -54,7 +55,7 @@ module.exports = app => {
54
55
app.insight.track('yoyo', 'home');
56
57
return fullname().then(name => {
- const allo = name ? `'Allo ${name.split(' ')[0]}! ` : '\'Allo! ';
58
+ const allo = (name && isString(name)) ? `'Allo ${name.split(' ')[0]}! ` : '\'Allo! ';
59
60
return inquirer.prompt([{
61
name: 'whatNext',
0 commit comments