Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed double url resolving #3404

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading