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
This commit is contained in:
Matthias 2023-09-01 07:21:26 +02:00
parent 505212eb3d
commit 421fe3ec34

View File

@ -132,6 +132,9 @@ const tableItems = computed<TableItem[]>(() => {
summary.wins += v.winning_trades; summary.wins += v.winning_trades;
summary.losses += v.losing_trades; summary.losses += v.losing_trades;
// summary.decimals = this.allBotState[k]?.stake_currency_decimals || summary.decimals; // 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;
} }
} }
}); });