fixed initials when more than 2 names

This commit is contained in:
ronronscelestes 2021-09-28 20:24:39 +02:00
parent f98e046a34
commit efef7beb2b

View File

@ -69,7 +69,8 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
const initials = userDisplayName const initials = userDisplayName
.split(' ') .split(' ')
.map(name => name.substring(0, 1)) .map(name => name.substring(0, 1))
.join(''); .join('')
.substring(0, 2);
const handleToggleUserLinks = () => setUserLinksVisible(prev => !prev); const handleToggleUserLinks = () => setUserLinksVisible(prev => !prev);