explorer: prevent raw details from showing on inner instructions (#13951)
This commit is contained in:
@ -39,7 +39,7 @@ export function InstructionCard({
|
|||||||
const signature = useContext(SignatureContext);
|
const signature = useContext(SignatureContext);
|
||||||
const details = useTransactionDetails(signature);
|
const details = useTransactionDetails(signature);
|
||||||
let raw: TransactionInstruction | undefined = undefined;
|
let raw: TransactionInstruction | undefined = undefined;
|
||||||
if (details) {
|
if (details && childIndex === undefined) {
|
||||||
raw = details?.data?.raw?.transaction.instructions[index];
|
raw = details?.data?.raw?.transaction.instructions[index];
|
||||||
}
|
}
|
||||||
const fetchRaw = useFetchRawTransaction();
|
const fetchRaw = useFetchRawTransaction();
|
||||||
|
Reference in New Issue
Block a user