fixed floating point numbers formatting in table
This commit is contained in:
parent
ca1532fb8b
commit
dfc9adcd9f
@ -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>)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user