From 421fe3ec34e7c1e182c3d0d4acb05951f4c2d12c Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 1 Sep 2023 07:21:26 +0200 Subject: [PATCH] Show Stake-currency of the last bot in bot comparison (this may be wrong for multi-bot multi-currency setups - but should work fine for people with just one bot). closes #1405 --- src/components/ftbot/BotComparisonList.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ftbot/BotComparisonList.vue b/src/components/ftbot/BotComparisonList.vue index ec26c07f..9acfee54 100644 --- a/src/components/ftbot/BotComparisonList.vue +++ b/src/components/ftbot/BotComparisonList.vue @@ -132,6 +132,9 @@ const tableItems = computed(() => { summary.wins += v.winning_trades; summary.losses += v.losing_trades; // summary.decimals = this.allBotState[k]?.stake_currency_decimals || summary.decimals; + // This will always take the last bot's stake currency + // And therefore may result in wrong values. + summary.stakeCurrency = botStore.allBotState[k]?.stake_currency || summary.stakeCurrency; } } });