Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/increase numerical precision for cryptocurrency quantities in holding detail dialog (#6038)
Thomas Kaulbcca6089966f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a2e9f9823b..82e43c554b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0#### Changed+- Increased the numerical precision for cryptocurrency quantities in the holding detail dialog- Upgraded `envalid` from version `8.1.0` to `8.1.1`- Upgraded `prettier` from version `3.7.3` to `3.7.4`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.tsindex 55574d2022..6a7129fec0 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@@ -411,10 +411,10 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit {if (Number.isInteger(this.quantity)) {this.quantityPrecision = 0;} else if (SymbolProfile?.assetSubClass === 'CRYPTOCURRENCY') {- if (this.quantity < 1) {- this.quantityPrecision = 7;+ if (this.quantity < 10) {+ this.quantityPrecision = 8;} else if (this.quantity < 1000) {- this.quantityPrecision = 5;+ this.quantityPrecision = 6;} else if (this.quantity >= 10000000) {this.quantityPrecision = 0;}