Skip to content

Commit

Permalink
Merge pull request #113 from NazarUsov/testnet/issues
Browse files Browse the repository at this point in the history
Fix view transaction
  • Loading branch information
sowle authored May 7, 2024
2 parents 1f2ce4c + b4f7a71 commit 9f50160
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ import { zanoAssetInfo } from '@parts/data/assets';
<ng-container
*ngIf="
!subtransfer.is_income
? subtransfer.amount.minus(transaction.fee ?? 0).toNumber() !== 0
? true
: subtransfer.amount.toNumber() !== 0
"
>
Expand Down Expand Up @@ -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));

}
Expand Down

0 comments on commit 9f50160

Please sign in to comment.