Skip to content

Commit

Permalink
Merge pull request #3404 from Emurgo/fix/YOEXT-993/nft-image-loading
Browse files Browse the repository at this point in the history
fixed double url resolving
  • Loading branch information
vsubhuman authored Jan 29, 2024
2 parents 49a535d + f3b6956 commit a36c29d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const tabs = [
];

function NFTDetails({ nftInfo, network, intl, nextNftId, prevNftId, tab }: Props & Intl): Node {
const nftImage = urlResolveForIpfsAndCorsproxy(nftInfo?.image);
const nftImage = nftInfo?.image;
const networkUrl = getNetworkUrl(network);
const [activeTab, setActiveTab] = useState(tab !== null ? tab : tabs[0].id); // Overview tab
const setActiveTabAndTrack = function (tabId: string) {
Expand Down Expand Up @@ -392,7 +392,7 @@ function NFTDetails({ nftInfo, network, intl, nextNftId, prevNftId, tab }: Props
>
<img
style={{ objectFit: 'cover', maxWidth: '100%', maxHeight: '100%' }}
src={nftImage}
src={urlResolveForIpfsAndCorsproxy(nftImage)}
alt={nftInfo.name}
title={nftInfo.name}
loading="lazy"
Expand Down

0 comments on commit a36c29d

Please sign in to comment.