diff --git a/components/Badge/index.tsx b/components/Badge/index.tsx index c83a81e5..22cb924e 100644 --- a/components/Badge/index.tsx +++ b/components/Badge/index.tsx @@ -39,18 +39,18 @@ const Badge: React.FC = ({
{!badgeLoaded && } - {badge404 && - {name} - } + {badge404 && ( + {name} + )} {name} setBadgeLoaded(true)} - onError={() => { setBadge404(true); setBadgeLoaded(true); }} + onError={() => { + setBadge404(true); + setBadgeLoaded(true); + }} hidden={!badgeLoaded || badge404} />