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() {
this.$bvModal.msgBoxConfirm(`Really forcesell ALL trades?`).then((value) => {
console.log(value);
const payload: ForceSellPayload = {
tradeid: 'all',
// TODO: support ordertype (?)
};
this.forcesell(payload);
this.$bvModal.msgBoxConfirm(`Really forcesell ALL trades?`).then((value: boolean) => {
if (value) {
const payload: ForceSellPayload = {
tradeid: 'all',
// TODO: support ordertype (?)
};
this.forcesell(payload);
}
});
}
}