Skip to content

Commit

Permalink
fix: some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Feb 15, 2024
1 parent 910b5de commit 7b941f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/User/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export const User = React.forwardRef<HTMLDivElement, UserProps>(
avatar
) : (
<Avatar
{...avatar}
size={size}
alt={alt}
aria-label={avatarAriaLabel}
aria-labelledby={avatarAriaLabelledBy}
{...avatar}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserLabel/UserLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const UserLabel = React.forwardRef<HTMLDivElement, UserLabelProps>(
avatarProps = {
imgUrl: avatar,
};
} else if (avatar) {
} else if (avatar && !React.isValidElement(avatar)) {
avatarProps = avatar;
} else if (!avatar && typeof children === 'string') {
avatarProps = {
Expand Down

0 comments on commit 7b941f4

Please sign in to comment.