Skip to content

Commit

Permalink
fix: consider userId in UserInfromationContainer (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi authored Nov 14, 2023
1 parent 3244c4f commit 63662d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ export class UserInformationContainer extends React.Component<
return avatar.name
}

const lastPart = address ? `#${address.slice(-4)}` : ''
const userId = address || avatar.userId
const lastPart = userId ? `#${userId.slice(-4)}` : ''
return avatar.name.endsWith(lastPart) ? avatar.name : avatar.name + lastPart
}

Expand Down

0 comments on commit 63662d1

Please sign in to comment.