Skip to content

Commit

Permalink
update: added img for users without image
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Nov 23, 2023
1 parent 06e3de4 commit 23e271e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ const AssignUserRoles = (props: AssignUserModalProps) => {
>
<AssignUserContainer>
<UserInfoContainer>
<AssignRoleUserImage src={user?.img} alt="profile" />
<AssignRoleUserImage
src={user?.img || main.getUserAvatarPlaceholder(user?.owner_pubkey || '')}
alt="profile"
/>
<AssignRoleUsername>{user?.owner_alias}</AssignRoleUsername>
</UserInfoContainer>
<UserRolesContainer>
Expand Down

0 comments on commit 23e271e

Please sign in to comment.