Browse Source

fix(client): remove dead code

pull/7050/head
KenTandrian 3 months ago
parent
commit
4cf62be980
  1. 16
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

16
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

@ -163,9 +163,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
protected user: User;
protected value: number;
private netPerformance: number;
private netPerformancePrecision = 2;
private netPerformancePercent: number;
private tags: Tag[];
public constructor(
@ -271,8 +268,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
marketPrice,
marketPriceMax,
marketPriceMin,
netPerformance,
netPerformancePercent,
netPerformancePercentWithCurrencyEffect,
netPerformanceWithCurrencyEffect,
quantity,
@ -368,17 +363,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
this.marketPricePrecision = 0;
}
this.netPerformance = netPerformance;
if (
this.data.deviceType === 'mobile' &&
this.netPerformance >= NUMERICAL_PRECISION_THRESHOLD_5_FIGURES
) {
this.netPerformancePrecision = 0;
}
this.netPerformancePercent = netPerformancePercent;
this.netPerformancePercentWithCurrencyEffect =
netPerformancePercentWithCurrencyEffect;

Loading…
Cancel
Save