From e4826b3e0659314746376e6acf424c93b6086de7 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 11 Apr 2026 23:37:44 +0700 Subject: [PATCH] feat(client): implement defaultLocale to resolve type error --- .../app/components/home-watchlist/home-watchlist.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts b/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts index e6f366351..0c695b7b4 100644 --- a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts +++ b/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts @@ -1,5 +1,6 @@ import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; +import { locale as defaultLocale } from '@ghostfolio/common/config'; import { AssetProfileIdentifier, Benchmark, @@ -149,7 +150,7 @@ export class GfHomeWatchlistComponent implements OnInit { autoFocus: false, data: { deviceType: this.deviceType, - locale: this.user?.settings?.locale + locale: this.user?.settings?.locale ?? defaultLocale }, width: this.deviceType === 'mobile' ? '100vw' : '50rem' });