Don't flip pair back to first pair in whitelist automatically

This commit is contained in:
Matthias 2020-11-10 20:23:43 +01:00
parent ee06a542bb
commit aa1b881072

View File

@ -159,8 +159,10 @@ export default class CandleChartContainer extends Vue {
@Watch('availablePairs') @Watch('availablePairs')
watchAvailablePairs() { watchAvailablePairs() {
[this.pair] = this.availablePairs; if (!this.availablePairs.find((pair) => pair === this.pair)) {
this.refresh(); [this.pair] = this.availablePairs;
this.refresh();
}
} }
@Watch(BotStoreGetters.selectedPair) @Watch(BotStoreGetters.selectedPair)