From f0e207dff2d7c1184f57346662bc254fd554c85c Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 4 Oct 2024 22:32:25 +0000 Subject: [PATCH] fix wallet balance graph bug --- .../components/custom-dashboard/custom-dashboard.component.ts | 2 +- frontend/src/app/components/wallet/wallet.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/custom-dashboard/custom-dashboard.component.ts b/frontend/src/app/components/custom-dashboard/custom-dashboard.component.ts index eb9818632..efbd9e19c 100644 --- a/frontend/src/app/components/custom-dashboard/custom-dashboard.component.ts +++ b/frontend/src/app/components/custom-dashboard/custom-dashboard.component.ts @@ -409,7 +409,7 @@ export class CustomDashboardComponent implements OnInit, OnDestroy, AfterViewIni newSummaries.push(txSummary); } } - return [...summaries, ...this.deduplicateWalletTransactions(newSummaries)]; + return this.deduplicateWalletTransactions([...summaries, ...newSummaries]); }, this.deduplicateWalletTransactions(Object.values(wallet).flatMap(address => address.transactions))) )), share(), diff --git a/frontend/src/app/components/wallet/wallet.component.ts b/frontend/src/app/components/wallet/wallet.component.ts index be04e1760..8ace95694 100644 --- a/frontend/src/app/components/wallet/wallet.component.ts +++ b/frontend/src/app/components/wallet/wallet.component.ts @@ -250,9 +250,9 @@ export class WalletComponent implements OnInit, OnDestroy { newSummaries.push(txSummary); } } - return [...summaries, ...this.deduplicateWalletTransactions(newSummaries)]; + return this.deduplicateWalletTransactions([...summaries, ...newSummaries]); }, this.deduplicateWalletTransactions(Object.values(wallet).flatMap(address => address.transactions))) - )), + )) ); this.walletStats$ = this.wallet$.pipe(