Skip to content

Commit

Permalink
Hide vote txs that don't invoke any other programs like the comment s…
Browse files Browse the repository at this point in the history
…ays (solana-labs#26727)

Co-authored-by: Arrowana <[email protected]>
  • Loading branch information
Arrowana and Arrowana authored Jul 23, 2022
1 parent 700da0f commit 4308db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/src/components/block/BlockHistoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function BlockHistoryCard({ block }: { block: BlockResponse }) {
return true;
} else if (programFilter === HIDE_VOTES) {
// hide vote txs that don't invoke any other programs
return !(invocations.size === 1 || invocations.has(voteFilter));
return !(invocations.has(voteFilter) && invocations.size === 1);
}
return invocations.has(programFilter);
})
Expand Down

0 comments on commit 4308db7

Please sign in to comment.