fix LogoWithFallback

This commit is contained in:
tjs 2022-12-09 18:08:15 -05:00
parent a9716a2181
commit e0af9766c5
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,7 @@ const LogoWithFallback = ({
<Image
alt={alt}
onError={(e) => {
console.error('error', e)
console.warn('error', e)
setError(true)
}}
src={src}

View File

@ -63,8 +63,12 @@ const MarketLogos = ({
className="z-10 drop-shadow-md"
width={small ? '16' : '20'}
height={small ? '16' : '20'}
src={logos.baseLogoURI}
fallback={<div></div>}
src={logos.baseLogoURI || `/icons/${logos?.name?.toLowerCase()}.svg`}
fallback={
<QuestionMarkCircleIcon
className={`${small ? 'h-4 w-4' : 'h-5 w-5'} text-th-fgd-3`}
/>
}
/>
</div>
<div className="absolute right-0 top-0">