Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix filtered value for emergency fund (#1619)

Thomas Kaula7e513a6d1d3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7afcf39655..11653d69cf 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 the value of the active (emergency fund) filter in percentage on the allocations page
+
## 1.228.1 - 2023-01-18
### Added
diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts
index 210b5b8381..5b7a8386f8 100644
--- a/apps/api/src/app/portfolio/portfolio.service.ts
+++ b/apps/api/src/app/portfolio/portfolio.service.ts
@@ -614,6 +614,8 @@ export class PortfolioService {
)
.toNumber();
+ filteredValueInBaseCurrency = emergencyFund;
+
accounts[UNKNOWN_KEY] = {
balance: 0,
currency: userCurrency,