don't require open trades in cumprofitchart

This commit is contained in:
Matthias 2023-05-24 06:36:33 +02:00
parent cf4fdacd0e
commit 2a033370fb

View File

@ -50,7 +50,7 @@ const CHART_PROFIT = 'Profit';
const props = defineProps({
trades: { required: true, type: Array as () => ClosedTrade[] },
openTrades: { required: true, type: Array as () => Trade[] },
openTrades: { required: false, type: Array as () => Trade[], default: () => [] },
showTitle: { default: true, type: Boolean },
profitColumn: { default: 'profit_abs', type: String },
});