round unsettled balance decimals

This commit is contained in:
saml33 2022-04-19 22:13:40 +10:00
parent c1eda608a1
commit 04aa01ba6a
1 changed files with 10 additions and 2 deletions

View File

@ -465,8 +465,16 @@ const BalancesTable = ({
balance.borrows.toFormat(balance.decimals)
)}
</Td>
<Td>{balance.orders}</Td>
<Td>{balance.unsettled}</Td>
<Td>
{balance.orders?.toLocaleString(undefined, {
maximumFractionDigits: balance.decimals,
})}
</Td>
<Td>
{balance.unsettled?.toLocaleString(undefined, {
maximumFractionDigits: balance.decimals,
})}
</Td>
<Td>
{marketConfig.kind === 'spot' &&
marketConfig.name.includes(balance.symbol) &&