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