From b4f7a7119c52acc9e362a5859fb701e135a923ea Mon Sep 17 00:00:00 2001 From: Nazar Usov Date: Tue, 7 May 2024 16:56:49 +0300 Subject: [PATCH] Fix view transaction --- .../app/pages/wallet/tabs/history/history.component.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/html_source/src/app/pages/wallet/tabs/history/history.component.ts b/html_source/src/app/pages/wallet/tabs/history/history.component.ts index 488bafd0..e30916c0 100644 --- a/html_source/src/app/pages/wallet/tabs/history/history.component.ts +++ b/html_source/src/app/pages/wallet/tabs/history/history.component.ts @@ -187,7 +187,7 @@ import { zanoAssetInfo } from '@parts/data/assets'; @@ -460,8 +460,14 @@ export class HistoryComponent implements OnInit, OnDestroy { }); } - isVisibleSubtransferStatus(subtransfer: Subtransfer, { fee }: Transaction): boolean { + isVisibleSubtransferStatus(subtransfer: Subtransfer, transaction: Transaction): boolean { const { amount, asset_id, is_income } = subtransfer; + const { fee, subtransfers } = transaction; + + if (subtransfers.length === 1 && asset_id === zanoAssetInfo.asset_id && is_income === false && amount.eq(fee)) { + return true; + } + return !(asset_id === zanoAssetInfo.asset_id && is_income === false && amount.eq(fee)); }