Bugfix/fix addition of manual asset without market data (#3516)

* Provide default value

* Update changelog
pull/3515/head
Thomas Kaul 5 months ago committed by GitHub
parent 8cda43bb63
commit ba979cbae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Changed the mechanism of the `INTRADAY` data gathering to persist data only if the market state is `OPEN` - Changed the mechanism of the `INTRADAY` data gathering to persist data only if the market state is `OPEN`
- Fixed the creation of activities with `MANUAL` data source (with no historical market data)
## 2.90.0 - 2024-06-22 ## 2.90.0 - 2024-06-22

@ -167,9 +167,10 @@ export class ManualService implements DataProviderInterface {
}); });
for (const { currency, symbol } of symbolProfiles) { for (const { currency, symbol } of symbolProfiles) {
let marketPrice = marketData.find((marketDataItem) => { let marketPrice =
marketData.find((marketDataItem) => {
return marketDataItem.symbol === symbol; return marketDataItem.symbol === symbol;
})?.marketPrice; })?.marketPrice ?? 0;
response[symbol] = { response[symbol] = {
currency, currency,

Loading…
Cancel
Save