diff --git a/src/Avatar.js b/src/Avatar.js index 2e15874b4e..23e5fab9fb 100644 --- a/src/Avatar.js +++ b/src/Avatar.js @@ -67,7 +67,7 @@ module.exports = { * @return {string} the first letter */ getInitialLetter(name) { - if (name.length < 1) { + if (!name || name.length < 1) { return undefined; }