Skip to content

Commit

Permalink
don't show the logs panel if no logs in tx or in results
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Aug 9, 2024
1 parent 106a10f commit b419efa
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ export const TransactionInfo = ({
});

const visibleOperations = getVisibleOperations(transaction);
const showLogs =
transaction.logs || (transaction.results && transaction.results.length > 0);
const hasTxResultsLogs =
transaction.results &&
transaction.results.length > 0 &&
transaction.results.some((ressult) => ressult.logs);
const showLogs = transaction.logs || hasTxResultsLogs;

const totalTxTokenUsdValue = getTotalTxTokenUsdValue(transaction);
const showTotalTxTokenUsdValue =
Expand Down

0 comments on commit b419efa

Please sign in to comment.