From 4b899de4bc2cb4d651a9b95f084a54f47818b5a8 Mon Sep 17 00:00:00 2001 From: Ken Kunz Date: Tue, 27 Aug 2024 15:03:29 -0500 Subject: [PATCH] use correct value property for open positions --- .../[status=positionStatus]-positions/PositionTable.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/strategies/[strategy]/[status=positionStatus]-positions/PositionTable.svelte b/src/routes/strategies/[strategy]/[status=positionStatus]-positions/PositionTable.svelte index 731af9e2d..1d3e47fd1 100644 --- a/src/routes/strategies/[strategy]/[status=positionStatus]-positions/PositionTable.svelte +++ b/src/routes/strategies/[strategy]/[status=positionStatus]-positions/PositionTable.svelte @@ -25,7 +25,7 @@ $: positionsStore.set(positions); const statusColumns = { - open: ['description', 'flags', 'profitability', 'value', 'opened_at', 'cta'], + open: ['description', 'flags', 'profitability', 'current_value', 'opened_at', 'cta'], closed: ['description', 'flags', 'profitability', 'value_at_open', 'closed_at', 'cta'], frozen: ['description', 'flags', 'frozen_on', 'frozen_value', 'frozen_at', 'cta'] }; @@ -76,7 +76,8 @@ }), table.column({ header: 'Value', - accessor: 'value', + id: 'current_value', + accessor: 'currentValue', cell: ({ value }) => formatDollar(value) }), table.column({ @@ -147,7 +148,7 @@ padding-block: 0; } - :is(.profitability, .value, .value_at_open, .frozen_value, .opened_at, .closed_at, .frozen_at) { + :is(.profitability, .current_value, .value_at_open, .frozen_value, .opened_at, .closed_at, .frozen_at) { text-align: right; }