From b0c69f6d77039a52e687117c8da05835f534549e Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 25 Aug 2020 19:36:14 +0200 Subject: [PATCH] Fix profit formatting --- src/components/ftbot/TradeList.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 2c6a2401..b0064146 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -68,8 +68,6 @@ export default class TradeList extends Vue { currentPage = 1; - formatPercent = formatPercent; - get rows(): number { return this.trades.length; } @@ -89,7 +87,7 @@ export default class TradeList extends Vue { { key: this.activeTrades ? 'current_profit' : 'close_profit', label: this.activeTrades ? 'Current profit %' : 'Profit %', - formatter: 'formatPercent', + formatter: (value) => formatPercent(value, 3), }, { key: 'open_date', label: 'Open date' }, { key: 'close_date', label: 'Close date' },