From aa1b8810723128b8b55fd82525ec2e6b75b43328 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 10 Nov 2020 20:23:43 +0100 Subject: [PATCH] Don't flip pair back to first pair in whitelist automatically --- src/components/charts/CandleChartContainer.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/charts/CandleChartContainer.vue b/src/components/charts/CandleChartContainer.vue index 4e68f49b..d0fe42fc 100644 --- a/src/components/charts/CandleChartContainer.vue +++ b/src/components/charts/CandleChartContainer.vue @@ -159,8 +159,10 @@ export default class CandleChartContainer extends Vue { @Watch('availablePairs') watchAvailablePairs() { - [this.pair] = this.availablePairs; - this.refresh(); + if (!this.availablePairs.find((pair) => pair === this.pair)) { + [this.pair] = this.availablePairs; + this.refresh(); + } } @Watch(BotStoreGetters.selectedPair)