Fix bug in forcesell all

This commit is contained in:
Matthias 2022-01-22 13:22:52 +01:00
parent 136f7a8267
commit 9413e75b12

View File

@ -146,13 +146,14 @@ export default class BotControls extends Vue {
} }
handleForceSell() { handleForceSell() {
this.$bvModal.msgBoxConfirm(`Really forcesell ALL trades?`).then((value) => { this.$bvModal.msgBoxConfirm(`Really forcesell ALL trades?`).then((value: boolean) => {
console.log(value); if (value) {
const payload: ForceSellPayload = { const payload: ForceSellPayload = {
tradeid: 'all', tradeid: 'all',
// TODO: support ordertype (?) // TODO: support ordertype (?)
}; };
this.forcesell(payload); this.forcesell(payload);
}
}); });
} }
} }