use profit_loss and not amount
This commit is contained in:
parent
a8e3206584
commit
95b1921f37
@ -37,7 +37,7 @@ export class PositionTable extends Component<{ positions: Array<PositionProp> }>
|
|||||||
let row_bg = "";
|
let row_bg = "";
|
||||||
|
|
||||||
if (!position.state.toLowerCase().includes("break")) {
|
if (!position.state.toLowerCase().includes("break")) {
|
||||||
row_bg = "table-" + this.plColorFromStr(position.amount)
|
row_bg = "table-" + this.plColorFromStr(position.profit_loss)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (<tr key={position.id} className={row_bg}>
|
return (<tr key={position.id} className={row_bg}>
|
||||||
|
Loading…
Reference in New Issue
Block a user