From 8d1651c8ad65c73501ba0ecdc39417965f4c8675 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 9 Dec 2020 12:00:40 -0800 Subject: [PATCH] explorer: hotfix - undefined nonce instruction check (#14029) --- explorer/src/pages/TransactionDetailsPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/explorer/src/pages/TransactionDetailsPage.tsx b/explorer/src/pages/TransactionDetailsPage.tsx index c3972b017a..4fc0c54d31 100644 --- a/explorer/src/pages/TransactionDetailsPage.tsx +++ b/explorer/src/pages/TransactionDetailsPage.tsx @@ -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]