Skip to content

Commit

Permalink
fix metamask casing on token details page
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Dec 16, 2024
1 parent 58ca7af commit 10286a4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/pages/asset/components/asset-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type Asset = (
/** The number of decimal places to move left when displaying balances */
decimals: number;
/** An array of token list sources the asset appears in, e.g. [1inch,Sushiswap] */
aggregators?: [];
aggregators?: string[];
}
) & {
/** The hexadecimal chain id */
Expand Down Expand Up @@ -330,7 +330,13 @@ const AssetPage = ({
>
{t('tokenList')}
</Text>
<Text>{asset.aggregators.join(', ')}</Text>
<Text>
{asset.aggregators
.map((agg) =>
agg.replace(/^metamask$/iu, 'MetaMask'),
)
.join(', ')}
</Text>
</Box>
)}
</Box>
Expand Down

0 comments on commit 10286a4

Please sign in to comment.