Skip to content

Commit

Permalink
fix BITXP decimals (#3047)
Browse files Browse the repository at this point in the history
* fix BITXP decimals

* fix
  • Loading branch information
wow-sven authored Dec 12, 2024
1 parent a6f0215 commit c50a84d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ type RowItemProps = {
};

/// TODO: Temporary exclusion
const symbols = [
'BITXP'
]
const symbols = ['BITXP'];

export default function AssetRowItem({ row, isWalletOwner, onOpenTransferModal }: RowItemProps) {
const balance = symbols.includes(row.symbol)
? row.balance
: formatCoin(Number(row.balance), row.decimals, row.decimals);

return (
<TableRow>
<TableCell width="300px">
Expand All @@ -45,7 +47,7 @@ export default function AssetRowItem({ row, isWalletOwner, onOpenTransferModal }

<TableCell>
<ListItemText
primary={Intl.NumberFormat('en-us').format(Number(formatCoin(Number(row.balance), row.decimals, row.decimals)))}
primary={Intl.NumberFormat('en-us').format(Number(balance))}
primaryTypographyProps={{
typography: 'body2',
sx: {
Expand Down

0 comments on commit c50a84d

Please sign in to comment.