From 9413e75b1266b5dc96c54b88a44f83ca24e1ba58 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 22 Jan 2022 13:22:52 +0100 Subject: [PATCH] Fix bug in forcesell all --- src/components/ftbot/BotControls.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/ftbot/BotControls.vue b/src/components/ftbot/BotControls.vue index f1f5c94b..9c8f49c5 100644 --- a/src/components/ftbot/BotControls.vue +++ b/src/components/ftbot/BotControls.vue @@ -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); + } }); } }