From bace76e12c57fae7fe2fa550aed8324b1c67501e Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 19 Oct 2021 05:20:14 -0300 Subject: [PATCH] Fix wrong message when cant decode log --- src/transaction/LogEntry.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/transaction/LogEntry.tsx b/src/transaction/LogEntry.tsx index f404ad3..23ab883 100644 --- a/src/transaction/LogEntry.tsx +++ b/src/transaction/LogEntry.tsx @@ -22,7 +22,10 @@ const LogEntry: React.FC = ({ txData, log, logDesc }) => { const topic0 = useTopic0(rawTopic0); const topic0LogDesc = useMemo(() => { - if (!topic0?.signatures) { + if (!topic0) { + return topic0; + } + if (!topic0.signatures) { return undefined; } @@ -84,7 +87,7 @@ const LogEntry: React.FC = ({ txData, log, logDesc }) => { ) : resolvedLogDesc === null ? (
- No decoded data + Can't decode data
) : (