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 51e5cbe43..3b94e6915 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,6 +1,10 @@ import { DataService } from '@ghostfolio/client/services/data.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { Benchmark, User } from '@ghostfolio/common/interfaces'; +import { + AssetProfileIdentifier, + Benchmark, + User +} from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { GfBenchmarkComponent } from '@ghostfolio/ui/benchmark'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; @@ -95,7 +99,7 @@ export class HomeWatchlistComponent implements OnDestroy, OnInit { this.unsubscribeSubject.complete(); } - public onWatchlistItemDeleted(item: Benchmark) { + public onWatchlistItemDeleted(item: AssetProfileIdentifier) { this.dataService .deleteWatchlistItem(item) .pipe(takeUntil(this.unsubscribeSubject)) diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index eba7b9417..aac70afdc 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -113,7 +113,7 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy { } } - public onDeleteWatchlistItem({ dataSource, symbol }: AssetProfileIdentifier) { + public onDeleteWatchlistItem({ dataSource, symbol }: Benchmark) { this.notificationService.confirm({ confirmFn: () => this.watchlistItemDeleted.emit({ dataSource, symbol }), confirmType: ConfirmationDialogType.Warn,