Commit 259b2df5 authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #1716 from blockscout/fe-1714

fix token icon fallback
parents 9a3d38d7 bcafc933
...@@ -57,6 +57,7 @@ const Icon = (props: IconProps) => { ...@@ -57,6 +57,7 @@ const Icon = (props: IconProps) => {
src={ props.token.icon_url ?? undefined } src={ props.token.icon_url ?? undefined }
alt={ `${ props.token.name || 'token' } logo` } alt={ `${ props.token.name || 'token' } logo` }
fallback={ <TokenLogoPlaceholder { ...styles }/> } fallback={ <TokenLogoPlaceholder { ...styles }/> }
fallbackStrategy={ props.token.icon_url ? 'onError' : 'beforeLoadOrError' }
/> />
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment