diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8a517f..a38fc82a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,13 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed the unit for the _Zen Mode_ in the overview tab of the home page - Fixed an issue to get quotes in the _Financial Modeling Prep_ service ## 2.20.0 - 2023-11-08 ### Changed -- Removed the loading indicator of the unit on the overview tab of the home page +- Removed the loading indicator of the unit in the overview tab of the home page - Improved the import of historical market data in the admin control panel - Increased the timeout in the health check endpoint for data enhancers - Increased the timeout in the health check endpoint for data providers diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 92d80152..74bdec31 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -70,10 +70,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit { .subscribe((impersonationId) => { this.hasImpersonationId = !!impersonationId; - this.unit = this.hasImpersonationId - ? '%' - : this.user?.settings?.baseCurrency; - this.changeDetectorRef.markForCheck(); }); @@ -81,6 +77,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit { !this.hasImpersonationId && !this.user.settings.isRestrictedView && this.user.settings.viewMode !== 'ZEN'; + + this.unit = this.showDetails ? this.user.settings.baseCurrency : '%'; } public onChangeDateRange(dateRange: DateRange) {