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

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();