Fix wrong message when cant decode log

This commit is contained in:
Willian Mitsuda 2021-10-19 05:20:14 -03:00
parent 719ce4bd35
commit bace76e12c
1 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,10 @@ const LogEntry: React.FC<LogEntryProps> = ({ 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<LogEntryProps> = ({ txData, log, logDesc }) => {
) : resolvedLogDesc === null ? (
<div className="grid grid-cols-12 gap-x-3 gap-y-5 text-sm">
<div className="col-start-2 flex space-x-2 items-center col-span-11">
No decoded data
Can't decode data
</div>
</div>
) : (