Optional chaining

This commit is contained in:
Willian Mitsuda 2021-09-18 19:38:35 -03:00
parent d007f10e7a
commit 6008eb102d
1 changed files with 1 additions and 6 deletions

View File

@ -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>
);