From 0eeaaeb8569df71caef496a80491233a3d9d0bc0 Mon Sep 17 00:00:00 2001
From: Matthias
Date: Thu, 14 May 2020 18:12:20 +0200
Subject: [PATCH] Add forcebuy status verification
---
src/ftbot/Balance.vue | 2 +-
src/ftbot/BotStatus.vue | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/ftbot/Balance.vue b/src/ftbot/Balance.vue
index c7d5a6d7..e4f11cf5 100644
--- a/src/ftbot/Balance.vue
+++ b/src/ftbot/Balance.vue
@@ -36,7 +36,7 @@ export default {
},
methods: {
formatCurrency(value) {
- return value.toFixed(5);
+ return value ? value.toFixed(5) : '';
},
},
};
diff --git a/src/ftbot/BotStatus.vue b/src/ftbot/BotStatus.vue
index 956f965b..ded27449 100644
--- a/src/ftbot/BotStatus.vue
+++ b/src/ftbot/BotStatus.vue
@@ -14,7 +14,8 @@
, with Strategy{{ botState.strategy }}
- Currently {{ botState.state }}
+ Currently {{ botState.state }}, forcebuy: {{ botState.forcebuy_enabled }}
{{ botState.dry_run ? 'Dry-Run' : 'Live' }}