Skip to content

Commit

Permalink
fix(Avatar): fix avatar color (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa18289 authored Dec 18, 2024
1 parent a6780a0 commit 0e9d09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Avatar = flowComponent("Avatar", (props) => {
styles.avatar,
styles[`size-${size}`],
className,
styles[(color ?? hasInitials) ? getColorFromChildren(children) : "blue"],
styles[color ?? (hasInitials ? getColorFromChildren(children) : "blue")],
);

const propsContext: PropsContext = {
Expand Down

0 comments on commit 0e9d09e

Please sign in to comment.