use profit_loss and not amount

This commit is contained in:
Giulio De Pasquale 2020-12-17 10:18:52 +00:00
parent a8e3206584
commit 95b1921f37

View File

@ -37,7 +37,7 @@ export class PositionTable extends Component<{ positions: Array<PositionProp> }>
let row_bg = "";
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}>