explorer: prevent raw details from showing on inner instructions (#13951)

This commit is contained in:
Josh 2020-12-03 14:31:45 -08:00 committed by GitHub
parent 4e8565253c
commit f2b31c3a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function InstructionCard({
const signature = useContext(SignatureContext);
const details = useTransactionDetails(signature);
let raw: TransactionInstruction | undefined = undefined;
if (details) {
if (details && childIndex === undefined) {
raw = details?.data?.raw?.transaction.instructions[index];
}
const fetchRaw = useFetchRawTransaction();