Skip to content

Commit

Permalink
style: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Jan 30, 2024
1 parent 4c4287d commit e558b04
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/Badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ const Badge: React.FC<BadgeProps> = ({
<div className="flex aspect-square w-full select-none items-center justify-center">
{!badgeLoaded && <BadgeSkeleton />}

{badge404 &&
<img
src={"/images/badges/badge-not-found.svg"}
alt={name}
/>
}
{badge404 && (
<img src={"/images/badges/badge-not-found.svg"} alt={name} />
)}

<img
src={avatar}
alt={name}
onLoad={() => setBadgeLoaded(true)}
onError={() => { setBadge404(true); setBadgeLoaded(true); }}
onError={() => {
setBadge404(true);
setBadgeLoaded(true);
}}
hidden={!badgeLoaded || badge404}
/>
</div>
Expand Down

0 comments on commit e558b04

Please sign in to comment.