Always update TradeEntries in candlechart - otherwise Trades may stick around

This commit is contained in:
Matthias 2021-05-15 20:30:21 +02:00
parent d1c66b633b
commit ffee8d8702

View File

@ -457,8 +457,6 @@ export default class CandleChart extends Vue {
this.chartOptions.grid[this.chartOptions.grid.length - 1].bottom = '50px';
delete this.chartOptions.grid[this.chartOptions.grid.length - 1].top;
}
if (this.filteredTrades.length > 0) {
// Show trades
const { trades, tradesClose } = this.getTradeEntries();
const name = 'Trades';
@ -495,7 +493,6 @@ export default class CandleChart extends Vue {
if (this.chartOptions.series) {
this.chartOptions.series.push(closeSeries);
}
}
console.log('chartOptions', this.chartOptions);
}