diff --git a/CHANGELOG.md b/CHANGELOG.md index a064d6a85..e8fb1e775 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Changed + +- Beautified the ETF names in the asset profile + ### Fixed +- Fixed the buying power calculation if no emergency fund is set but an activity is tagged as _Emergency Fund_ - Fixed the url on logout during the local development ## 1.235.0 - 2023-02-16 @@ -1344,7 +1349,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Beautified the ETF names in the symbol profile +- Beautified the ETF names in the asset profile ### Fixed diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 6700eda99..2564d1d49 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -1550,7 +1550,10 @@ export class PortfolioService { userCurrency }).toNumber(); const emergencyFund = new Big( - (user.Settings?.settings as UserSettings)?.emergencyFund ?? 0 + Math.max( + emergencyFundPositionsValueInBaseCurrency, + (user.Settings?.settings as UserSettings)?.emergencyFund ?? 0 + ) ); const fees = this.getFees({ activities, userCurrency }).toNumber(); const firstOrderDate = activities[0]?.date; diff --git a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts index bccc5c648..20895340e 100644 --- a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts +++ b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts @@ -441,8 +441,10 @@ export class YahooFinanceService implements DataProviderInterface { let name = longName; if (name) { + name = name.replace('Amundi Index Solutions - ', ''); name = name.replace('iShares ETF (CH) - ', ''); name = name.replace('iShares III Public Limited Company - ', ''); + name = name.replace('iShares V PLC - ', ''); name = name.replace('iShares VI Public Limited Company - ', ''); name = name.replace('iShares VII PLC - ', ''); name = name.replace('Multi Units Luxembourg - ', '');