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 3cecc5e5de..c7b880efce 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 @@ -106,11 +106,13 @@ export class GfHomeOverviewComponent implements OnInit { }); protected readonly unit = computed(() => { - const user = this.user(); + if (!this.showDetails()) { + return '%'; + } - return this.showDetails() - ? (user?.settings?.baseCurrency ?? DEFAULT_CURRENCY) - : '%'; + return this.deviceType() === 'mobile' + ? undefined + : (this.user()?.settings?.baseCurrency ?? DEFAULT_CURRENCY); }); private readonly dataService = inject(DataService); diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index aade357b78..9ae445ab52 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -44,7 +44,7 @@ export class GfPortfolioPerformanceComponent { } }); public readonly showDetails = input(false); - public readonly unit = input.required(); + public readonly unit = input(); private readonly value = viewChild.required>('value');