Browse Source

Move nullification to position detail dialog

pull/2133/head
Thomas 2 years ago
parent
commit
cbf309954f
  1. 9
      apps/client/src/app/components/position/position-detail-dialog/position-detail-dialog.component.ts

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

@ -215,6 +215,15 @@ export class PositionDetailDialog implements OnDestroy, OnInit {
this.benchmarkDataItems[0].value = this.averagePrice;
}
this.benchmarkDataItems = this.benchmarkDataItems.map(
({ date, value }) => {
return {
date,
value: value === 0 ? null : value
};
}
);
if (Number.isInteger(this.quantity)) {
this.quantityPrecision = 0;
} else if (this.SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') {

Loading…
Cancel
Save