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>
|
<div className="text-sm py-4">Transaction Receipt Event Logs</div>
|
||||||
{txData.confirmedData &&
|
{txData.confirmedData &&
|
||||||
txData.confirmedData.logs.map((l, i) => (
|
txData.confirmedData.logs.map((l, i) => (
|
||||||
<LogEntry
|
<LogEntry key={i} txData={txData} log={l} logDesc={logDesc?.[i]} />
|
||||||
key={i}
|
|
||||||
txData={txData}
|
|
||||||
log={l}
|
|
||||||
logDesc={logDesc && logDesc[i]}
|
|
||||||
/>
|
|
||||||
))}
|
))}
|
||||||
</ContentFrame>
|
</ContentFrame>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue