Skip to content

Commit 3133fbb

Browse files
authored
fix: remove token_uri image fallback in NFT pages (#69)
1 parent d493e20 commit 3133fbb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/pages/AddressPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export default function AddressPage() {
332332
<>
333333
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
334334
{nfts.map((t) => {
335-
const imageUrl = t.image_url || t.token_uri || null;
335+
const imageUrl = t.image_url || null;
336336
const displayName = t.name || `#${t.token_id}`;
337337
return (
338338
<Link key={`${t.contract_address}-${t.token_id}`} to={`/nfts/${t.contract_address}/${t.token_id}`} className="block group">

frontend/src/pages/NFTContractPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function NFTContractPage() {
8282
<div className="card">
8383
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 min-h-[200px]">
8484
{tokens.map((token) => {
85-
const imageUrl = token.image_url || token.token_uri || null;
85+
const imageUrl = token.image_url || null;
8686
const displayName = token.name || `${contract?.name || contract?.symbol || 'NFT'} #${token.token_id}`;
8787
return (
8888
<Link

frontend/src/pages/NFTTokenPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function NFTTokenPage() {
1313
const [txPage, setTxPage] = useState(1);
1414
const { transfers, pagination, loading } = useNftTokenTransfers(contractAddress, tokenId, { page: txPage, limit: 20 });
1515

16-
const imageUrl = token?.image_url || token?.token_uri || null;
16+
const imageUrl = token?.image_url || null;
1717
const displayName = token?.name || `${contract?.name || contract?.symbol || 'NFT'} #${token?.token_id || tokenId || ''}`;
1818

1919
return (

0 commit comments

Comments
 (0)