From e91b6f2e65641867cd15845485dfea65f1d89812 Mon Sep 17 00:00:00 2001 From: Joarley Santos Date: Sat, 18 Oct 2025 22:30:36 +0000 Subject: [PATCH] Feature: Adjust quantity precision for Bitcoin in holding detail dialog and activities table --- .../holding-detail-dialog/holding-detail-dialog.component.ts | 4 +++- .../src/lib/activities-table/activities-table.component.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts index d4c1c59c1..77dd90f33 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts @@ -407,7 +407,9 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit { if (Number.isInteger(this.quantity)) { this.quantityPrecision = 0; } else if (SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') { - if (this.quantity < 1) { + if (SymbolProfile?.symbol === 'BTC' || SymbolProfile?.symbol === "bitcoin") { + this.quantityPrecision = 8; + } else if (this.quantity < 1) { this.quantityPrecision = 7; } else if (this.quantity < 1000) { this.quantityPrecision = 5; diff --git a/libs/ui/src/lib/activities-table/activities-table.component.html b/libs/ui/src/lib/activities-table/activities-table.component.html index 472c24e2b..ea0f5c1d6 100644 --- a/libs/ui/src/lib/activities-table/activities-table.component.html +++ b/libs/ui/src/lib/activities-table/activities-table.component.html @@ -196,6 +196,7 @@