diff --git a/src/avatar-image.jsx b/src/avatar-image.jsx index 93e67b2..e0168db 100755 --- a/src/avatar-image.jsx +++ b/src/avatar-image.jsx @@ -172,6 +172,7 @@ const AvatarImage = createReactClass({ var initials = ''; for(var i=0 ; i < parts.length ; i++) { + if (i > 3) break; initials += parts[i].substr(0, 1).toUpperCase(); } return initials;