Skip to content

Commit

Permalink
chore: remove infinite skeleton when user not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
tche authored and tche committed Dec 26, 2024
1 parent f00e378 commit b924ccb
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/components/ProfilePage/AddressCard/AddressCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,14 @@ export const AddressCard = ({ address }: AddressBoxProps) => {
<AddressBoxContainer>
<PassImageBox>
<ImageBackground imgUrl={imgLink} />
{address ? (
<AddressBlockiesImage
alt="Blockie Wallet Icon"
src={imageLink || imgLink}
width={140}
height={140}
priority={false}
unoptimized={true}
/>
) : (
<AddressBlockiesImageSkeleton variant="circular" />
)}
<AddressBlockiesImage
alt="Blockie Wallet Icon"
src={imageLink || imgLink}
width={140}
height={140}
priority={false}
unoptimized={true}
/>
</PassImageBox>
<AddressBox>
{address ? (
Expand Down

0 comments on commit b924ccb

Please sign in to comment.