Browse Source

feat(client): implement defaultLocale to resolve type error

pull/6724/head
KenTandrian 1 month ago
parent
commit
e4826b3e06
  1. 3
      apps/client/src/app/components/home-watchlist/home-watchlist.component.ts

3
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'
});

Loading…
Cancel
Save