From f17635193acdbdcf897cf9c88ce12f7999dc7112 Mon Sep 17 00:00:00 2001 From: natsoni Date: Fri, 31 May 2024 12:36:50 +0200 Subject: [PATCH] Fix pool ranking component update --- .../src/app/components/pool-ranking/pool-ranking.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts index f7862d120..2d78252ef 100644 --- a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts +++ b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts @@ -3,7 +3,7 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { EChartsOption, PieSeriesOption } from '../../graphs/echarts'; import { merge, Observable } from 'rxjs'; -import { map, share, startWith, switchMap, tap } from 'rxjs/operators'; +import { map, shareReplay, startWith, switchMap, tap } from 'rxjs/operators'; import { SeoService } from '../../services/seo.service'; import { StorageService } from '../..//services/storage.service'; import { MiningService, MiningStats } from '../../services/mining.service'; @@ -107,7 +107,7 @@ export class PoolRankingComponent implements OnInit { this.isLoading = false; this.prepareChartOptions(data); }), - share() + shareReplay(1) ); }