Skip to content

Commit

Permalink
Update identification transaction initiator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar Usov authored and Nazar Usov committed Apr 25, 2024
1 parent c079b55 commit 4017df9
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 4017df9

Please sign in to comment.