Skip to content

Commit

Permalink
Fix displaying token icon if hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
henryboldi committed Apr 19, 2022
1 parent 4b702a9 commit eeba203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/components/Shared/SharedAssetIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ export default function SharedAssetIcon(props: Props): ReactElement {

const httpURL = getAsHttpURL(logoURL)

const shouldDisplayTokenIcon = Boolean(httpURL || hasHardcodedIcon)

return (
<div className={`token_icon_wrap ${size}`}>
{httpURL ? (
{shouldDisplayTokenIcon ? (
<div className="token_icon" />
) : (
<div className={`token_icon_fallback ${size}`}>
Expand Down

0 comments on commit eeba203

Please sign in to comment.