Skip to content

Commit

Permalink
fix: add check undefined with data?.isInteractWithContract in tx detail
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Mar 28, 2023
1 parent 28d80dc commit 7e8bf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/tx/[tx].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TransactionDetailPage: React.FC<Props> = ({ errorMessage, data, evmHash, c
const hash = evmHash || cosmosHash
const { isMobile } = useMobileLayout('small')
const { raw: internalTransactionRows, loading: internalLoading } = useInternalTransactions({
hash: data.isInteractWithContract ? hash : null
hash: data?.isInteractWithContract ? hash : null
})
const cards = useConvertData({ data, internalTransactionRows, internalLoading })
const isEvm = data && !!data.evmHash
Expand Down

0 comments on commit 7e8bf98

Please sign in to comment.