Skip to content

Commit

Permalink
chore: fix token symbol crop image (#3358)
Browse files Browse the repository at this point in the history
Co-authored-by: Anxo Rodriguez <[email protected]>
  • Loading branch information
fairlighteth and anxolin authored Nov 7, 2023
1 parent 9135805 commit 1a9c8b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/tokens/src/pure/TokenLogo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const TokenLogoWrapper = styled.div<{ size?: number }>`
overflow: hidden;
img {
width: ${({ size }) => size}px;
height: ${({ size }) => size}px;
width: 100%;
height: 100%;
border-radius: ${({ size }) => size}px;
object-fit: contain;
}
Expand Down Expand Up @@ -62,7 +62,7 @@ export function TokenLogo({ logoURI, token, className, size = 36 }: TokenLogoPro

return (
<TokenLogoWrapper className={className} size={size}>
{!currentUrl ? <Slash size={size} /> : <img alt="" src={currentUrl} onError={onError} />}
{!currentUrl ? <Slash size={size} /> : <img alt="token logo" src={currentUrl} onError={onError} />}
</TokenLogoWrapper>
)
}

0 comments on commit 1a9c8b9

Please sign in to comment.