Bugfix/fix exception in portfolio calculator (#4109)

* Fix exception in portfolio calculator

* Update changelog
This commit is contained in:
Thomas Kaul 2024-12-07 21:41:21 +01:00 committed by GitHub
parent 17ffb29275
commit ebef361d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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/), 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Fixed an exception in the caching of the portfolio snapshot in the portfolio calculator
## 2.126.0 - 2024-12-07 ## 2.126.0 - 2024-12-07
### Added ### Added

View File

@ -176,6 +176,7 @@ export abstract class PortfolioCalculator {
if (!transactionPoints.length) { if (!transactionPoints.length) {
return { return {
currentValueInBaseCurrency: new Big(0), currentValueInBaseCurrency: new Big(0),
errors: [],
hasErrors: false, hasErrors: false,
historicalData: [], historicalData: [],
positions: [], positions: [],