fixed floating point numbers formatting in table

This commit is contained in:
Giulio De Pasquale 2020-12-14 14:58:34 +00:00
parent ca1532fb8b
commit dfc9adcd9f

View File

@ -26,8 +26,8 @@ export class PositionTable extends Component<{}, { positions: Array<PositionStat
return (<tr key={position.id}> return (<tr key={position.id}>
<th>{position.id}</th> <th>{position.id}</th>
<th>{position.symbol}</th> <th>{position.symbol}</th>
<th>{position.profit_loss}</th> <th>{position.profit_loss.toFixed(2)}</th>
<th>{position.profit_loss_percentage} %</th> <th>{position.profit_loss_percentage.toFixed(2)} %</th>
</tr>) </tr>)
}) })
} }