bptrgx 2 years ago
parent
commit
0ed0e53d88
  1. 18
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.component.ts

18
apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.component.ts

@ -113,17 +113,13 @@ export class PositionDetailDialog implements OnDestroy, OnInit {
this.grossPerformancePercent = grossPerformancePercent;
this.historicalDataItems = historicalData.map(
(historicalDataItem) => {
if (historicalDataItem.averagePrice) {
this.benchmarkDataItems.push({
date: historicalDataItem.date,
value: historicalDataItem.averagePrice
});
} else {
this.benchmarkDataItems.push({
date: historicalDataItem.date,
value: null
});
}
this.benchmarkDataItems.push({
date: historicalDataItem.date,
value:
historicalDataItem.averagePrice > 0
? historicalDataItem.averagePrice
: null
});
return {
date: historicalDataItem.date,

Loading…
Cancel
Save