From 4af3197cda05a018c280892c90a3bcdde5e6ce1e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 3 Sep 2020 07:11:24 +0200 Subject: [PATCH] Fix price display in trade tables --- src/components/ftbot/TradeList.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 56c29d37..dc66e4f3 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -46,7 +46,7 @@ import { Component, Vue, Prop } from 'vue-property-decorator'; import { namespace } from 'vuex-class'; // eslint-disable-next-line @typescript-eslint/no-unused-vars -import { formatPercent } from '@/shared/formatters'; +import { formatPercent, formatPrice } from '@/shared/formatters'; import { Trade } from '@/types'; import ProfitSymbol from './ProfitSymbol.vue'; @@ -95,10 +95,11 @@ export default class TradeList extends Vue { { key: 'pair', label: 'Pair' }, { key: 'amount', label: 'Amount' }, { key: 'stake_amount', label: 'Stake amount' }, - { key: 'open_rate', label: 'Open rate' }, + { key: 'open_rate', label: 'Open rate', formatter: (value) => formatPrice(value) }, { key: this.activeTrades ? 'current_rate' : 'close_rate', label: this.activeTrades ? 'Current rate' : 'Close rate', + formatter: (value) => formatPrice(value), }, { key: this.activeTrades ? 'current_profit' : 'close_profit',