add rounding

This commit is contained in:
c9s 2021-02-06 17:48:19 +08:00
parent d4ef9e4b6d
commit a09e97d75c

View File

@ -63,7 +63,7 @@ export default function TotalAssetsDetails({assets}) {
</ListItemAvatar>
)
}
<ListItemText dense primary={`${a.currency} ${a.total}`} secondary={`USD =~ ${a.inUSD}`}/>
<ListItemText dense primary={`${a.currency} ${a.total}`} secondary={`=~ ${Math.round(a.inUSD)} USD`}/>
</ListItem>
)
})