Browse Source

Merge 9df5eb9cb8 into 83b88b0dc7

pull/5160/merge
Jan Giebels 1 day ago
committed by GitHub
parent
commit
b7458d1f3c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

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

@ -355,16 +355,11 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {
this.quantity = quantity;
if (Number.isInteger(this.quantity)) {
this.quantityPrecision = 0;
} else if (SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') {
if (this.quantity < 1) {
this.quantityPrecision = 7;
} else if (this.quantity < 1000) {
this.quantityPrecision = 5;
} else if (this.quantity >= 10000000) {
this.quantityPrecision = 0;
}
this.quantityPrecision = 0;
if (this.quantity < 10) {
this.quantityPrecision = 5;
} else if (this.quantity < 1) {
this.quantityPrecision = 8;
}
this.reportDataGlitchMail = `mailto:hi@ghostfol.io?Subject=Ghostfolio Data Glitch Report&body=Hello%0D%0DI would like to report a data glitch for%0D%0DSymbol: ${SymbolProfile?.symbol}%0DData Source: ${SymbolProfile?.dataSource}%0D%0DAdditional notes:%0D%0DCan you please take a look?%0D%0DKind regards`;

Loading…
Cancel
Save