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 user: User;
protected value: number; protected value: number;
private netPerformance: number;
private netPerformancePrecision = 2;
private netPerformancePercent: number;
private tags: Tag[]; private tags: Tag[];
public constructor( public constructor(
@ -271,8 +268,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
marketPrice, marketPrice,
marketPriceMax, marketPriceMax,
marketPriceMin, marketPriceMin,
netPerformance,
netPerformancePercent,
netPerformancePercentWithCurrencyEffect, netPerformancePercentWithCurrencyEffect,
netPerformanceWithCurrencyEffect, netPerformanceWithCurrencyEffect,
quantity, quantity,
@ -368,17 +363,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
this.marketPricePrecision = 0; 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 = this.netPerformancePercentWithCurrencyEffect =
netPerformancePercentWithCurrencyEffect; netPerformancePercentWithCurrencyEffect;

Loading…
Cancel
Save