Custom msg for 0 logs
This commit is contained in:
parent
bef7691d77
commit
380abf2adc
|
@ -60,11 +60,24 @@ const Logs: React.FC<LogsProps> = ({ txData, metadata }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ContentFrame tabs>
|
<ContentFrame tabs>
|
||||||
<div className="text-sm py-4">Transaction Receipt Event Logs</div>
|
{txData.confirmedData && (
|
||||||
{txData.confirmedData &&
|
<>
|
||||||
txData.confirmedData.logs.map((l, i) => (
|
{txData.confirmedData.logs.length > 0 ? (
|
||||||
<LogEntry key={i} txData={txData} log={l} logDesc={logDesc?.[i]} />
|
<>
|
||||||
))}
|
{txData.confirmedData.logs.map((l, i) => (
|
||||||
|
<LogEntry
|
||||||
|
key={i}
|
||||||
|
txData={txData}
|
||||||
|
log={l}
|
||||||
|
logDesc={logDesc?.[i]}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<div className="text-sm py-4">Transaction didn't emit any logs</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</ContentFrame>
|
</ContentFrame>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue