Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix algebraic sign in value component (#1811)
Thomas Kaulb37df2c84f48
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex df46261501..ad96fde423 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Fixed++- Fixed an issue with the algebraic sign in the value component+## 1.248.0 - 2023-03-25### Addeddiff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.tsindex d92d87cb15..e4b7779e98 100644--- a/libs/ui/src/lib/value/value.component.ts+++ b/libs/ui/src/lib/value/value.component.ts@@ -37,6 +37,8 @@ export class ValueComponent implements OnChanges {public constructor() {}public ngOnChanges() {+ this.initializeVariables();+if (this.value || this.value === 0) {if (isNumber(this.value)) {this.isNumber = true;@@ -120,4 +122,12 @@ export class ValueComponent implements OnChanges {this.useAbsoluteValue = true;}}++ private initializeVariables() {+ this.absoluteValue = 0;+ this.formattedValue = '';+ this.isNumber = false;+ this.isString = false;+ this.useAbsoluteValue = false;+ }}