diff --git a/explorer/src/pages/TransactionDetailsPage.tsx b/explorer/src/pages/TransactionDetailsPage.tsx index 07d83c0c0..0c5836b5f 100644 --- a/explorer/src/pages/TransactionDetailsPage.tsx +++ b/explorer/src/pages/TransactionDetailsPage.tsx @@ -30,6 +30,7 @@ import { TokenBalancesCard } from "components/transaction/TokenBalancesCard"; import { InstructionsSection } from "components/transaction/InstructionsSection"; import { ProgramLogSection } from "components/transaction/ProgramLogSection"; import { clusterPath } from "utils/url"; +import { getTransactionInstructionError } from "utils/program-err"; const AUTO_REFRESH_INTERVAL = 2000; const ZERO_CONFIRMATION_BAILOUT = 5; @@ -171,20 +172,26 @@ function StatusCard({ const { info } = status.data; - const renderResult = () => { - let statusClass = "success"; - let statusText = "Success"; - if (info.result.err) { - statusClass = "warning"; - statusText = "Error"; - } + let statusClass = "success"; + let statusText = "Success"; + let errorReason = undefined; - return ( -