From f2b31c3a890be69ee4c3c426721fba7c791b4dd4 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 3 Dec 2020 14:31:45 -0800 Subject: [PATCH] explorer: prevent raw details from showing on inner instructions (#13951) --- explorer/src/components/instruction/InstructionCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/components/instruction/InstructionCard.tsx b/explorer/src/components/instruction/InstructionCard.tsx index 9bb078fc4b..048734652d 100644 --- a/explorer/src/components/instruction/InstructionCard.tsx +++ b/explorer/src/components/instruction/InstructionCard.tsx @@ -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();