Bugfix/fix exception with market state (#602)

* Fix exception with market state

* Update changelog
pull/603/head
Thomas Kaul 2 years ago committed by GitHub
parent 15344513ce
commit d69a69ce18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `chart.js` from version `3.5.0` to `3.7.0`
- Upgraded `Nx` from version `13.3.0` to `13.4.1`
### Fixed
- Fixed an exception with the market state caused by a failed data provider request
## 1.98.0 - 29.12.2021
### Added

@ -662,7 +662,9 @@ export class PortfolioService {
grossPerformancePercentage:
position.grossPerformancePercentage?.toNumber() ?? null,
investment: new Big(position.investment).toNumber(),
marketState: dataProviderResponses[position.symbol].marketState,
marketState:
dataProviderResponses[position.symbol]?.marketState ??
MarketState.delayed,
name: symbolProfileMap[position.symbol].name,
netPerformance: position.netPerformance?.toNumber() ?? null,
netPerformancePercentage:

Loading…
Cancel
Save