explorer: hotfix - undefined nonce instruction check (#14029)

This commit is contained in:
Josh
2020-12-09 12:00:40 -08:00
committed by GitHub
parent 1d267eae6b
commit 8d1651c8ad

View File

@@ -201,7 +201,10 @@ function StatusCard({
const transaction = details?.data?.transaction?.transaction;
const blockhash = transaction?.message.recentBlockhash;
const isNonce = (() => {
if (!transaction) return false;
if (!transaction || transaction.message.instructions.length < 1) {
return false;
}
const ix = intoTransactionInstruction(
transaction,
transaction.message.instructions[0]