mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 00:17:15 +00:00
fixed initials when more than 2 names
This commit is contained in:
parent
f98e046a34
commit
efef7beb2b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user