Hide vote txs that don't invoke any other programs like the comment says (#26727)

Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>
This commit is contained in:
Pierre 2022-07-23 23:57:32 +10:00 committed by GitHub
parent 700da0fc83
commit 4308db74e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
})