Skip to content

Commit

Permalink
Merge pull request #76 from CheesecakeLabs/fix_asset_image_list
Browse files Browse the repository at this point in the history
fix: asset images list
  • Loading branch information
lucasmagnus authored Dec 19, 2023
2 parents 1d65210 + 513b4d5 commit 79948aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions frontend/src/components/templates/contracts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,9 @@ export const ContractsTemplate: React.FC<IContractsTemplate> = ({
navigate(`${PathRoute.CONTRACT_DETAIL}/${contract.id}`)
}}
>
<Td>
<Td minW="5rem">
{contract.asset.image ? (
<Img
src={contract.asset.image}
w="32px"
h="32px"
/>
<Img src={contract.asset.image} w="32px" h="32px" />
) : (
getCurrencyIcon(contract.asset.code, '2rem')
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const TokenManagementTemplate: React.FC<ITokenManagementTemplate> = ({
navigate(`${PathRoute.ASSET_HOME}/${asset.id}`)
}
>
<Td>
<Td minW="5rem">
{asset.image ? (
<Img src={asset.image} w="32px" h="32px" />
) : (
Expand Down

0 comments on commit 79948aa

Please sign in to comment.