Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-sven committed Dec 12, 2024
1 parent 11badf1 commit 7b2329d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ type RowItemProps = {
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 @@ -43,11 +47,7 @@ export default function AssetRowItem({ row, isWalletOwner, onOpenTransferModal }

<TableCell>
<ListItemText
primary={
symbols.includes(row.symbol)
? row.balance
: 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 7b2329d

Please sign in to comment.