From fa493c22d2ab7c448865121a44aa1ebba1d480b2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 15 Jun 2022 19:35:14 +0200 Subject: [PATCH] Fix tradecount in header not resetting to 0 --- src/components/layout/NavBar.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index 61172124..0a4314c9 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -215,12 +215,8 @@ export default defineComponent({ watch( () => botStore.activeBotorUndefined?.openTradeCount, () => { - console.log('openTradeCount changed'); - if ( - settingsStore.openTradesInTitle === OpenTradeVizOptions.showPill && - botStore.activeBotorUndefined?.openTradeCount - ) { - setOpenTradesAsPill(botStore.activeBotorUndefined.openTradeCount); + if (settingsStore.openTradesInTitle === OpenTradeVizOptions.showPill) { + setOpenTradesAsPill(botStore.activeBotorUndefined?.openTradeCount ?? 0); } else if (settingsStore.openTradesInTitle === OpenTradeVizOptions.asTitle) { setTitle(); }