From dfc9adcd9f32e797f7ffbc3198855a1c0ff3d138 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 14 Dec 2020 14:58:34 +0000 Subject: [PATCH] fixed floating point numbers formatting in table --- websrc/components/Tables.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websrc/components/Tables.tsx b/websrc/components/Tables.tsx index 90d952b..34e4010 100644 --- a/websrc/components/Tables.tsx +++ b/websrc/components/Tables.tsx @@ -26,8 +26,8 @@ export class PositionTable extends Component<{}, { positions: Array {position.id} {position.symbol} - {position.profit_loss} - {position.profit_loss_percentage} % + {position.profit_loss.toFixed(2)} + {position.profit_loss_percentage.toFixed(2)} % ) }) }