Skip to content

Commit

Permalink
Merge branch 'develop' into 957-remove-unused-methods-tx-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistevam authored Jul 26, 2023
2 parents 8aacca4 + d262acb commit 9cded12
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ const ConfirmAddSuggestedNFT = () => {
}, [history, mostRecentOverviewPage, suggestedNfts]);

let origin;
let link;
if (suggestedNfts.length) {
try {
origin = new URL(suggestedNfts[0].origin)?.host;
const url = new URL(suggestedNfts[0].origin);
origin = url.host;
link = url.href;
} catch {
origin = 'dapp';
}
Expand Down Expand Up @@ -138,7 +141,7 @@ const ConfirmAddSuggestedNFT = () => {
<ButtonLink
key={origin}
size={BUTTON_SIZES.INHERIT}
href={origin}
href={link}
target="_blank"
>
{origin}
Expand Down

0 comments on commit 9cded12

Please sign in to comment.