Skip to content

Commit

Permalink
use correct value property for open positions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Aug 27, 2024
1 parent d63310f commit 4b899de
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']
};
Expand Down Expand Up @@ -76,7 +76,8 @@
}),
table.column({
header: 'Value',
accessor: 'value',
id: 'current_value',
accessor: 'currentValue',
cell: ({ value }) => formatDollar(value)
}),
table.column({
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b899de

Please sign in to comment.