Rename closedtrades to closedTrades

This commit is contained in:
Matthias 2020-07-17 16:42:28 +02:00
parent f9f1c37c61
commit 1571a8fd77
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ export default {
const [dTrade] = state.openTrades.filter((item) => item.trade_id === state.detailTradeId); const [dTrade] = state.openTrades.filter((item) => item.trade_id === state.detailTradeId);
return dTrade; return dTrade;
}, },
closedtrades(state) { closedTrades(state) {
return state.trades.filter((item) => !item.is_open); return state.trades.filter((item) => !item.is_open);
}, },
}, },

View File

@ -47,7 +47,7 @@
<div class="col-md-12"> <div class="col-md-12">
<TradeList <TradeList
class="trade-history" class="trade-history"
:trades="closedtrades" :trades="closedTrades"
title="Trade history" title="Trade history"
emptyText="No closed trades so far." emptyText="No closed trades so far."
v-if="!detailTradeId" v-if="!detailTradeId"
@ -98,7 +98,7 @@ export default class Trading extends Vue {
openTrades!: Array<Trade>; openTrades!: Array<Trade>;
@ftbot.Getter @ftbot.Getter
closedtrades!: Array<Trade>; closedTrades!: Array<Trade>;
@ftbot.Getter @ftbot.Getter
openTradeDetail!: Trade; openTradeDetail!: Trade;