Skip to content

Commit

Permalink
Merge pull request #111 from NazarUsov/testnet/issues
Browse files Browse the repository at this point in the history
Update identification transaction initiator
  • Loading branch information
sowle authored Apr 25, 2024
2 parents 585ffce + 4017df9 commit 34fc685
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ export class HistoryComponent implements OnInit, OnDestroy {

isInitiator(transaction: Transaction): boolean {
const { employed_entries: { spent= [] } } = transaction;
return Boolean(spent?.find(({ asset_id, index }) => {
return index === 0 && asset_id === zanoAssetInfo.asset_id;
return Boolean(spent?.find(({ index }) => {
return index === 0;
}));
}

Expand Down

0 comments on commit 34fc685

Please sign in to comment.