fix the loading of profile image due to displayName (#16201)

This commit is contained in:
Ashish Gupta 2024-05-09 22:20:27 +05:30 committed by GitHub
parent 36803774df
commit 55678e3e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,7 +337,7 @@ export const UserProfileIcon = () => {
onError={handleOnImageError}
/>
) : (
<ProfilePicture name={userName} width="36" />
<ProfilePicture name={currentUser?.name ?? ''} width="36" />
)}
<div className="d-flex flex-col">
<Tooltip title={getEntityName(currentUser)}>