From dc17b93f7a0767b3d2ab1d6699507f10acafd174 Mon Sep 17 00:00:00 2001 From: martonp Date: Mon, 12 Aug 2024 10:16:28 +0200 Subject: [PATCH] mm: Minor UI fixes The number of booked orders was not being updated on the UI page, and the profit/loss was not being limited to 2 decimals. --- client/webserver/site/src/js/mm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/webserver/site/src/js/mm.ts b/client/webserver/site/src/js/mm.ts index 2fa8356bed..c727ecd1ad 100644 --- a/client/webserver/site/src/js/mm.ts +++ b/client/webserver/site/src/js/mm.ts @@ -514,7 +514,7 @@ class Bot extends BotMarket { Doc.setVis(running, tmpl.profitLossBox) Doc.setVis(!running, tmpl.allocateBttnBox) if (runStats) { - tmpl.profitLoss.textContent = Doc.formatFourSigFigs(runStats.profitLoss.profit) + tmpl.profitLoss.textContent = Doc.formatFourSigFigs(runStats.profitLoss.profit, 2) } } @@ -785,5 +785,6 @@ class Bot extends BotMarket { handleRunStats () { this.updateDisplay() this.updateTableRow() + this.runDisplay.readBook() } }