= ({
? STEPS // show all steps, the failed one will be marked failed based on order
: STEPS;
+ // `getStellarExplorerUrl` returns "#" for hashes that fail validation; never
+ // render a dead link in that case.
+ const explorerUrl = txHash
+ ? getStellarExplorerUrl(
+ txHash,
+ networkConfig.isTestnet ? "testnet" : "mainnet",
+ )
+ : null;
+ const hasExplorerLink = Boolean(explorerUrl && explorerUrl !== "#");
+
return (