Skip to content

Commit

Permalink
fix: only display spinner icon if loading is true
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed Nov 13, 2023
1 parent bd694e8 commit 6b35929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rainbowkit/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function Avatar({ address, imageUrl, loading, size }: AvatarProps) {
>
<AvatarComponent address={address} ensImage={imageUrl} size={size} />
</Box>
{typeof loading === 'boolean' && (
{loading && (
<Box
color="accentColor"
display="flex"
Expand Down

0 comments on commit 6b35929

Please sign in to comment.