Skip to content

Commit

Permalink
Merge pull request #1716 from blockscout/fe-1714
Browse files Browse the repository at this point in the history
fix token icon fallback
  • Loading branch information
isstuev authored Mar 18, 2024
2 parents 9a3d38d + bcafc93 commit 259b2df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/shared/entities/token/TokenEntity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const Icon = (props: IconProps) => {
src={ props.token.icon_url ?? undefined }
alt={ `${ props.token.name || 'token' } logo` }
fallback={ <TokenLogoPlaceholder { ...styles }/> }
fallbackStrategy={ props.token.icon_url ? 'onError' : 'beforeLoadOrError' }
/>
);
};
Expand Down

0 comments on commit 259b2df

Please sign in to comment.