Skip to content

Commit

Permalink
fix BITXP decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-sven committed Dec 12, 2024
1 parent f284fb4 commit 11badf1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ type RowItemProps = {
};

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

export default function AssetRowItem({ row, isWalletOwner, onOpenTransferModal }: RowItemProps) {
return (
Expand Down Expand Up @@ -45,7 +43,11 @@ 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={
symbols.includes(row.symbol)
? row.balance
: formatCoin(Number(row.balance), row.decimals, row.decimals)
}
primaryTypographyProps={{
typography: 'body2',
sx: {
Expand Down

0 comments on commit 11badf1

Please sign in to comment.