Skip to content

Commit

Permalink
fix: double tx url param for explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Oct 31, 2023
1 parent 288ef84 commit 47dca08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useIframeUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useIframeUrl = () => {
return;
}

let url = `${explorer.url}${txHash ? `/tx/${txHash}` : ""}`;
let url = explorer.url;
if (url.endsWith("/")) url = url.substring(0, url.length - 1);

if (address && !txHash) {
Expand Down

0 comments on commit 47dca08

Please sign in to comment.