Commit bcafc933 authored by isstuev's avatar isstuev

fix token icon fallback

parent 8c1be25f
...@@ -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