Fix profit formatting

This commit is contained in:
Matthias 2020-08-25 19:36:14 +02:00
parent 507cc538f6
commit b0c69f6d77

View File

@ -68,8 +68,6 @@ export default class TradeList extends Vue {
currentPage = 1; currentPage = 1;
formatPercent = formatPercent;
get rows(): number { get rows(): number {
return this.trades.length; return this.trades.length;
} }
@ -89,7 +87,7 @@ export default class TradeList extends Vue {
{ {
key: this.activeTrades ? 'current_profit' : 'close_profit', key: this.activeTrades ? 'current_profit' : 'close_profit',
label: this.activeTrades ? 'Current profit %' : 'Profit %', label: this.activeTrades ? 'Current profit %' : 'Profit %',
formatter: 'formatPercent', formatter: (value) => formatPercent(value, 3),
}, },
{ key: 'open_date', label: 'Open date' }, { key: 'open_date', label: 'Open date' },
{ key: 'close_date', label: 'Close date' }, { key: 'close_date', label: 'Close date' },