Skip to content

Commit

Permalink
fix(UserBadge): show email if user noname
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov authored and Troff8 committed Sep 7, 2023
1 parent 8add2b2 commit a117332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UserBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const UserBadge: React.FC<UserBadgeProps> = ({ user, onCleanButtonClick }
<StyledIssuer>
<StyledUserPick src={user?.image} email={user?.email} size={24} />
<Text color={gray9} size="s">
{user?.nickname || user?.name}
{user?.nickname || user?.name || user?.email}
</Text>
{nullable(onCleanButtonClick, (onClick) => (
<StyledCleanButton onClick={onClick} />
Expand Down

0 comments on commit a117332

Please sign in to comment.