diff --git a/src/transaction/Logs.tsx b/src/transaction/Logs.tsx index 3990a24..72258f0 100644 --- a/src/transaction/Logs.tsx +++ b/src/transaction/Logs.tsx @@ -60,11 +60,24 @@ const Logs: React.FC = ({ txData, metadata }) => { return ( -
Transaction Receipt Event Logs
- {txData.confirmedData && - txData.confirmedData.logs.map((l, i) => ( - - ))} + {txData.confirmedData && ( + <> + {txData.confirmedData.logs.length > 0 ? ( + <> + {txData.confirmedData.logs.map((l, i) => ( + + ))} + + ) : ( +
Transaction didn't emit any logs
+ )} + + )}
); };