Optional chaining
This commit is contained in:
parent
d007f10e7a
commit
6008eb102d
|
@ -31,12 +31,7 @@ const Logs: React.FC<LogsProps> = ({ txData, metadata }) => {
|
|||
<div className="text-sm py-4">Transaction Receipt Event Logs</div>
|
||||
{txData.confirmedData &&
|
||||
txData.confirmedData.logs.map((l, i) => (
|
||||
<LogEntry
|
||||
key={i}
|
||||
txData={txData}
|
||||
log={l}
|
||||
logDesc={logDesc && logDesc[i]}
|
||||
/>
|
||||
<LogEntry key={i} txData={txData} log={l} logDesc={logDesc?.[i]} />
|
||||
))}
|
||||
</ContentFrame>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue