mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 16:37:13 +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
|
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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user