From a7e513a6d1d3a83ef045a0776a0677ac4f474788 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 20 Jan 2023 20:51:08 +0100 Subject: [PATCH] Bugfix/fix filtered value for emergency fund (#1619) * Fix filtered value * Update changelog --- CHANGELOG.md | 6 ++++++ apps/api/src/app/portfolio/portfolio.service.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7afcf3965..11653d69c 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 210b5b838..5b7a8386f 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,