diff --git a/app/utils/anchor.tsx b/app/utils/anchor.tsx index 5d3e54f2..adc55ab6 100644 --- a/app/utils/anchor.tsx +++ b/app/utils/anchor.tsx @@ -11,7 +11,7 @@ import { ChevronDown, ChevronUp, CornerDownRight } from 'react-feather'; import ReactJson from 'react-json-view'; export function getAnchorProgramName(program: Program | null): string | undefined { - return program ? snakeToTitleCase(program.idl.name) : undefined; + return program && 'name' in program.idl ? snakeToTitleCase(program.idl.name) : undefined; } export function AnchorProgramName({