diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts index 5f483d13f..7cb3aac08 100644 --- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts +++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts @@ -332,7 +332,8 @@ export class AssetProfileDialog implements OnDestroy, OnInit { .pipe( catchError(({ error }) => { this.notificationService.alert({ - title: `Error: ${error?.message}` + message: error?.message, + title: $localize`Error` }); return EMPTY; }), diff --git a/apps/client/src/app/components/admin-overview/admin-overview.component.ts b/apps/client/src/app/components/admin-overview/admin-overview.component.ts index 3da170424..20209ac35 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.component.ts +++ b/apps/client/src/app/components/admin-overview/admin-overview.component.ts @@ -61,8 +61,8 @@ export class AdminOverviewComponent implements OnDestroy, OnInit { private cacheService: CacheService, private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, - private userService: UserService, - private notificationService: NotificationService + private notificationService: NotificationService, + private userService: UserService ) { this.info = this.dataService.fetchInfo(); diff --git a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts index 0ad426e03..576e9be2b 100644 --- a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts +++ b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts @@ -99,7 +99,7 @@ export class UserAccountMembershipComponent implements OnDestroy, OnInit { }), catchError((error) => { this.notificationService.alert({ - title: error + title: error.message }); throw error; }) diff --git a/apps/client/src/app/pages/pricing/pricing-page.component.ts b/apps/client/src/app/pages/pricing/pricing-page.component.ts index 325642ca1..f775b22a4 100644 --- a/apps/client/src/app/pages/pricing/pricing-page.component.ts +++ b/apps/client/src/app/pages/pricing/pricing-page.component.ts @@ -85,7 +85,7 @@ export class PricingPageComponent implements OnDestroy, OnInit { }), catchError((error) => { this.notificationService.alert({ - title: error + title: error.message }); throw error; })