|
|
|
@ -29,7 +29,6 @@ export class HomeMarketComponent implements OnDestroy, OnInit {
|
|
|
|
|
public hasPermissionToAccessFearAndGreedIndex: boolean;
|
|
|
|
|
public historicalDataItems: HistoricalDataItem[];
|
|
|
|
|
public info: InfoItem;
|
|
|
|
|
public isLoading = true;
|
|
|
|
|
public readonly numberOfDays = 365;
|
|
|
|
|
public user: User;
|
|
|
|
|
|
|
|
|
@ -43,7 +42,6 @@ export class HomeMarketComponent implements OnDestroy, OnInit {
|
|
|
|
|
) {
|
|
|
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType;
|
|
|
|
|
this.info = this.dataService.fetchInfo();
|
|
|
|
|
this.isLoading = true;
|
|
|
|
|
|
|
|
|
|
this.userService.stateChanged
|
|
|
|
|
.pipe(takeUntil(this.unsubscribeSubject))
|
|
|
|
@ -89,7 +87,6 @@ export class HomeMarketComponent implements OnDestroy, OnInit {
|
|
|
|
|
.pipe(takeUntil(this.unsubscribeSubject))
|
|
|
|
|
.subscribe(({ benchmarks }) => {
|
|
|
|
|
this.benchmarks = benchmarks;
|
|
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck();
|
|
|
|
|
});
|
|
|
|
|