From efef7beb2bac3b24e18b51a7f4100705841d369b Mon Sep 17 00:00:00 2001 From: ronronscelestes Date: Tue, 28 Sep 2021 20:24:39 +0200 Subject: [PATCH] fixed initials when more than 2 names --- packages/core/admin/admin/src/components/LeftMenu/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/admin/admin/src/components/LeftMenu/index.js b/packages/core/admin/admin/src/components/LeftMenu/index.js index b2a763bb4c..2769eea9e9 100644 --- a/packages/core/admin/admin/src/components/LeftMenu/index.js +++ b/packages/core/admin/admin/src/components/LeftMenu/index.js @@ -69,7 +69,8 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => { const initials = userDisplayName .split(' ') .map(name => name.substring(0, 1)) - .join(''); + .join('') + .substring(0, 2); const handleToggleUserLinks = () => setUserLinksVisible(prev => !prev);